12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- # Maintainer (Arch): Jan de Groot <jgc@archlinux.org>
- # Maintainer: André Silva <emulatorman@hyperbola.info>
- # Contributor: Márcio Silva <coadde@hyperbola.info>
- pkgname=glib2
- pkgver=2.66.2
- _debver=2.66.2
- _debrel=1
- pkgrel=4
- pkgdesc="Low level core library"
- url="https://www.gtk.org/"
- license=(LGPL-2.1)
- arch=(i686 x86_64)
- depends=(pcre libffi libutil-linux)
- makedepends=(shared-mime-info python libelf util-linux
- meson docbook-xml docbook-xsl quilt) # quilt already have gettext-tiny as dependency
- optdepends=('python: glib-genmarshal, glib-mkenums, gtester-report'
- 'libelf: gresource inspection tool')
- options=(!emptydirs)
- source=("https://download.gnome.org/sources/glib/${pkgver:0:4}/glib-$pkgver.tar.xz"
- "https://deb.debian.org/debian/pool/main/g/glib2.0/glib2.0_$_debver-$_debrel.debian.tar.xz"
- noisy-glib-compile-schemas.diff
- glib-compile-schemas.hook gio-querymodules.hook)
- sha512sums=('30278c066c6b209f45fcfdb9ffc4732236451464506b93c0fff0964ff8aac58c15be85c3793c686d4740d9d97857984bc0ab71e38d5da11c5fd860e569fb6cb9'
- '9fee3d62bb3bfc4769bc934c95fe13f14bd9806abacd4708e3f0c96fdfef7768b8e3a42b610bdfc3d002fbb28c8194834c3a0e8edfde6162b37bcb9733670c03'
- '7f423a81500b357a6aecd88fed7bc954158d7cb5cf9f4976f35a2a63c7451947c8948f868e9c292fa04fc6bf10c05a2d8c9976078f1dc3050b2a75ee88ec7a81'
- 'c04fe25afc217c295b5ce4034733cec046126482d00fb8d0299e4815ac57129dd3f1c9ac824b9386d208a4f113e9dae682ea5b72f75387ed6b6b96a9cbbee8ca'
- '5afd6f275c8fff16df3e685818f2e7989b39ffb3b8f5fc261a5a6d54a9b28ef53af62f3bf5067cf87cb74691572f85730cbc508691956ae048a0f3ecc1a0a39c')
- prepare() {
- cd glib-$pkgver
- if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
- # Debian patches
- export QUILT_PATCHES=debian/patches
- export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
- export QUILT_DIFF_ARGS='--no-timestamps'
- mv "$srcdir"/debian .
- quilt push -av
- else
- # Suppress noise from glib-compile-schemas.hook
- patch -p1 -i ../noisy-glib-compile-schemas.diff
- fi
- }
- build() {
- CFLAGS+=" -DG_DISABLE_CAST_CHECKS"
- hyperbola-meson glib-$pkgver build \
- -D selinux=disabled \
- -D man=true
- ninja -C build
- }
- package() {
- DESTDIR="$pkgdir" meson install -C build
- install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
- python -m compileall -d /usr/share/glib-2.0/codegen \
- "$pkgdir/usr/share/glib-2.0/codegen"
- python -O -m compileall -d /usr/share/glib-2.0/codegen \
- "$pkgdir/usr/share/glib-2.0/codegen"
- install -d -m755 "$pkgdir/lib"
- mv $pkgdir/usr/lib/libglib-2.0.so.0* "$pkgdir/lib"
- ln -sf ../../lib/libglib-2.0.so.0 "$pkgdir/usr/lib/libglib-2.0.so"
- install -Dm644 glib-$pkgver/COPYING "$pkgdir/usr/share/licenses/glib2/COPYING"
- }
|