diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-03-06 18:21:50 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-03-06 18:21:50 +0100 |
commit | 48f23760dd1efa6fa8f77f53958c0091f3bffc57 (patch) | |
tree | 97e51cd8586093000360d0ddd6236e9a69ca4749 /lib32-libjson | |
parent | update xorg-server-hwcursor-gamma (diff) | |
download | aur-packages-48f23760dd1efa6fa8f77f53958c0091f3bffc57.tar.gz aur-packages-48f23760dd1efa6fa8f77f53958c0091f3bffc57.tar.bz2 aur-packages-48f23760dd1efa6fa8f77f53958c0091f3bffc57.tar.xz |
add lib32-libjson
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'lib32-libjson')
-rw-r--r-- | lib32-libjson/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib32-libjson/PKGBUILD b/lib32-libjson/PKGBUILD new file mode 100644 index 0000000..f6cd236 --- /dev/null +++ b/lib32-libjson/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +_pkgbasename=libjson +pkgname=lib32-$_pkgbasename +pkgver='0.8' +pkgrel='1' +pkgdesc="Small C library and small codebase that packs an efficient parser and a configurable printer (32-bit version)" +arch=('x86_64') +url="http://projects.snarc.org/libjson/" +license=('LGPL') +depends=(lib32-glibc $_pkgbasename) +makedepends=(gcc-multilib) +options=(!libtool !makeflags) +source=('http://projects.snarc.org/libjson/download/libjson-0.8.tar.gz') +md5sums=('f8eddc87510d399a2532a9b0d74c2455') + +build() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + sed -i s:/lib:/lib32:g Makefile + make CC="gcc -m32" CFLAGS:='-Wall -Os -fPIC' +} + +package() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + make CC="gcc -m32" CFLAGS:='-Wall -Os -fPIC' DESTDIR="${pkgdir}" install + rm -r "${pkgdir}/usr/bin" + rm -r "${pkgdir}/usr/include" +} + |