mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 08:04:37 +08:00
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakraos.org
|
|
#
|
|
|
|
pkgname=glib2
|
|
pkgver=2.38.2
|
|
pkgrel=3
|
|
pkgdesc="Common C routines used by GTK+ and other libs"
|
|
url="http://www.gtk.org/"
|
|
arch=('x86_64')
|
|
license=('LGPL')
|
|
depends=('pcre' 'libffi')
|
|
makedepends=('pkg-config' 'python2' 'libxslt' 'docbook-xml')
|
|
options=('!docs')
|
|
source=("http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver:0:4}/glib-${pkgver}.tar.xz"
|
|
'revert-warn-glib-compile-schemas.patch' 'nodelete.patch')
|
|
md5sums=('26d1d08e478fc48c181ca8be44f5b69f'
|
|
'3265d1afbcf1f5f308e26c3f9f6ca899'
|
|
'cb9237731c0592f83d4e44613367870e')
|
|
|
|
prepare() {
|
|
cd glib-$pkgver
|
|
patch -Rp1 -i ../revert-warn-glib-compile-schemas.patch
|
|
# see https://bugzilla.gnome.org/show_bug.cgi?id=707298
|
|
# and https://bugs.archlinux.org/task/39676
|
|
patch -p1 -i ../nodelete.patch
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/glib-${pkgver}"
|
|
PYTHON=/usr/bin/python2 ./configure --prefix=/usr --libdir=/usr/lib \
|
|
--sysconfdir=/etc \
|
|
--with-pcre=system \
|
|
--disable-fam
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/glib-${pkgver}"
|
|
make completiondir=/usr/share/bash-completion/completions DESTDIR="${pkgdir}" install
|
|
|
|
for _i in "${pkgdir}/usr/share/bash-completion/completions/"*; do
|
|
chmod -x "${_i}"
|
|
done
|
|
sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "$pkgdir"/usr/bin/gdbus-codegen
|
|
}
|
|
|