mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 10:32:15 +08:00
49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=glib2
|
|
pkgver=2.32.1
|
|
pkgrel=3
|
|
pkgdesc="Common C routines used by GTK+ and other libs"
|
|
url="http://www.gtk.org/"
|
|
arch=(i686 x86_64)
|
|
license=('LGPL')
|
|
depends=('pcre' 'libffi')
|
|
makedepends=('pkgconfig' 'python2')
|
|
options=('!libtool' '!docs')
|
|
source=(http://ftp.gnome.org/pub/GNOME/sources/glib/2.32/glib-${pkgver}.tar.xz
|
|
glib2.sh
|
|
glib2.csh
|
|
revert-warn-glib-compile-schemas.patch)
|
|
sha256sums=('484d5b7fc09f3fa398355adaf74b369768f5859866c299f229c99721990f8398'
|
|
'9456872cdedcc639fb679448d74b85b0facf81033e27157d2861b991823b5a2a'
|
|
'8d5626ffa361304ad3696493c0ef041d0ab10c857f6ef32116b3e2878ecf89e3'
|
|
'6967ba8481ce194ed083a462343386e32fea236e343299d3066a2106e1114e5f')
|
|
|
|
build() {
|
|
cd "${srcdir}/glib-${pkgver}"
|
|
patch -Rp1 -i "$srcdir/revert-warn-glib-compile-schemas.patch"
|
|
PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-pcre=system \
|
|
--disable-fam
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/glib-${pkgver}"
|
|
make completiondir=/usr/share/bash-completion/completions DESTDIR="${pkgdir}" install
|
|
|
|
install -d "${pkgdir}/etc/profile.d"
|
|
install -m755 "${srcdir}/glib2.sh" "${pkgdir}/etc/profile.d/"
|
|
install -m755 "${srcdir}/glib2.csh" "${pkgdir}/etc/profile.d/"
|
|
|
|
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
|
|
}
|
|
|