Created
May 31, 2015 22:53
-
-
Save bbidulock/e7ec7d6622471142e248 to your computer and use it in GitHub Desktop.
PKGBUILD for glib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Connor Behan <connor.behan@gmail.com> | |
# Contributor: Eric Bélanger <eric@archlinux.org> | |
pkgname=glib | |
pkgver=1.2.10 | |
pkgrel=13 | |
pkgdesc="Common C routines used by Gtk+ and other libs" | |
arch=('i686' 'x86_64') | |
url="http://www.gtk.org/" | |
license=('LGPL') | |
depends=('glibc' 'sh') | |
options=('!makeflags') | |
install=glib.install | |
source=(ftp://ftp.gnome.org/pub/gnome/sources/glib/1.2/${pkgname}-${pkgver}.tar.gz | |
gcc340.patch aclocal-fixes.patch glib1-autotools.patch) | |
sha1sums=('e5a9361c594608d152d5d9650154c2e3260b87fa' | |
'a2cc224a66aeffdcac16ebd9e8af18143cf54918' | |
'ae4438cf56c0c9264ee36f6973fb445f9a820be0' | |
'8a25fde3c79567262b3024f4e74c9ca4ee8a6279') | |
prepare() { | |
cd ${pkgname}-${pkgver} | |
patch -Np1 -i "${srcdir}/gcc340.patch" | |
patch -Np0 -i "${srcdir}/aclocal-fixes.patch" | |
patch -Np1 -i "${srcdir}/glib1-autotools.patch" | |
sed 's,ifdef[[:space:]]*__OPTIMIZE__,if 0,' -i glib.h | |
} | |
build() { | |
cd ${pkgname}-${pkgver} | |
if [[ $CARCH = "i686" ]]; then | |
CONFIGFLAG='--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu' | |
elif [[ $CARCH = "x86_64" ]]; then | |
CONFIGFLAG='--host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu' | |
fi | |
autoreconf --force --install | |
./configure --prefix=/usr --mandir=/usr/share/man \ | |
--infodir=/usr/share/info $CONFIGFLAG | |
make | |
} | |
check() { | |
cd ${pkgname}-${pkgver} | |
make check | |
} | |
package() { | |
cd ${pkgname}-${pkgver} | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment