updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / glib2-ubuntu / PKGBUILD
blob1bc5bc1b2a8835bf026d23f3a0149399249f28b6
1 # Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
3 pkgname=glib2-ubuntu
4 _ubuntu_ver=0ubuntu4
5 pkgver=2.30.0.${_ubuntu_ver}
6 pkgrel=2
7 pkgdesc="Common C routines used by GTK+ 2.4 and other libs"
8 url="http://www.gtk.org/"
9 arch=(i686 x86_64)
10 license=('LGPL')
11 depends=('pcre' 'libffi')
12 provides=("glib2=${pkgver%.*}")
13 conflicts=('glib2')
14 makedepends=('python2' 'pkgconfig')
15 options=('!libtool' '!docs' '!emptydirs')
16 source=("http://archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/glib2.0_${pkgver%.*}.orig.tar.bz2"
17         "http://archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/glib2.0_${pkgver%.*}-${_ubuntu_ver}.debian.tar.gz"
18         'glib2.sh'
19         'glib2.csh')
20 sha512sums=('c967c2ebf888c84ffa37d6ced7d55055511f95ec45759e6dea9a84506cba638cad4ace254b4bf5780169cad7fe6ed7c20531a5e844f864b3c7ce401c8c11642e'
21             '510c1212f05a94eefb17beb986b399c93ce29bd550af94a4f37a5ea507dc3f1eea6e16c2b6c55e8e6623312005329cb9e4f5ee8334e21811bce69421a3811f9a'
22             'dca2bc74d2013fcb24145ac794eef457aa3213c039e40a1a26ca5017694930768e7c80e334e17a56834549dff6549c781ddd91fae6c7bbb26fdd6a083ad8217a'
23             'c3899eb7fa5482ce8a35fe02db90fd0f928d50aa7e4365a9529ef35a2dcd1ed86d5a24f6bc5c635ef5b2d95a0ebfebc2bb6bc90404c99f6fb7484ed2fa032c06')
25 build() {
26   cd "${srcdir}/glib-${pkgver%.*}"
28   #This patch breaks the package in Arch Linux
29   sed -i '/gio-modules-multiarch-compat.patch/d' "${srcdir}/debian/patches/series"
31   for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
32     patch -Np1 -i "${srcdir}/debian/patches/${i}"
33   done
35   export PYTHON=/usr/bin/python2
36   ./configure \
37     --prefix=/usr \
38     --sysconfdir=/etc \
39     --with-pcre=system \
40     --disable-fam
41   make
44 package() {
45   cd "${srcdir}/glib-${pkgver%.*}"
46   make DESTDIR="${pkgdir}" install
48   install -d "${pkgdir}/etc/profile.d"
49   install -m755 "${srcdir}/glib2.sh" "${pkgdir}/etc/profile.d/"
50   install -m755 "${srcdir}/glib2.csh" "${pkgdir}/etc/profile.d/"
52   for _i in "${pkgdir}/etc/bash_completion.d/"*; do
53       chmod -x "${_i}"
54   done
55   sed -i "s|^\(#!.*python\)$|\12|" "${pkgdir}"/usr/bin/gdbus-codegen