🔒 Repository is read-only – file editing is disabled.

recipes/gui/codeblocks/PAGBUILD.yaml main

58 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
pkgname: codeblocks
pkgver: '25.03'
pkgrel: '1'
pkgdesc: 'a cross-platform Integrated Development Environment (IDE).'
url: 'https://www.codeblocks.org/'
arch: x86_64
license:
- GPL3

depends:
- 'desktop-file-utils'
- 'gtk-update-icon-cache'
- 'hicolor-icon-theme'
- 'shared-mime-info'

makedepends:
- sed
- autoconf
- m4
- zip
- boost
- hunspell
- wxwidgets
- imagemagick

source:
- '${pkgname}-consolidate_1.patch'
- 'https://downloads.sourceforge.net/codeblocks/${pkgname}_${pkgver}.tar.xz'

sha256sums:
- SKIP
- SKIP

build: |
  cd ${pkgname}_${pkgver}

  # Thanks fedora team
  patch -Np1 -i ../${pkgname}-consolidate_1.patch

  # Put icons in the right place
  magick src/mime/codeblocks.png +set date:create +set date:modify \
  -background none -extent 64x64 src/mime/codeblocks.png
  sed -i 's|$(datadir)/pixmaps|$(datadir)/icons/hicolor/64x64/apps|' \
  src/mime/Makefile.am

  autoreconf -fiv

  ./configure --prefix=/usr    \
   --with-contrib-plugins=all,-FileManager \
   --with-wx-config=/usr/bin/wx-config

  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
  make DESTDIR=${PKGDIR} install

package: |
  true