[arch-commits] Commit in lib32-json-c/repos (2 files)
Jan Steffens
heftig at nymeria.archlinux.org
Fri Jun 7 17:07:02 UTC 2013
Date: Friday, June 7, 2013 @ 19:07:02
Author: heftig
Revision: 92525
archrelease: copy trunk to multilib-testing-x86_64
Added:
lib32-json-c/repos/multilib-testing-x86_64/
lib32-json-c/repos/multilib-testing-x86_64/PKGBUILD
(from rev 92524, lib32-json-c/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: lib32-json-c/repos/multilib-testing-x86_64/PKGBUILD (from rev 92524, lib32-json-c/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2013-06-07 17:07:02 UTC (rev 92525)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
+# Contributor: congyiwu <congyiwu AT gmail DOT com>
+_pkgbasename=json-c
+pkgname=lib32-$_pkgbasename
+pkgver=0.11
+pkgrel=1
+pkgdesc="A JSON implementation in C (32-bit)"
+url="https://github.com/json-c/json-c/wiki"
+license=(MIT)
+arch=(x86_64)
+depends=(lib32-glibc $_pkgbasename)
+makedepends=(gcc-multilib libtool-multilib)
+options=(!libtool !makeflags)
+source=(https://s3.amazonaws.com/${_pkgbasename}_releases/releases/$_pkgbasename-${pkgver}.tar.gz)
+sha256sums=('28dfc65145dc0d4df1dfe7701ac173c4e5f9347176c8983edbfac9149494448c')
+
+build() {
+ cd $_pkgbasename-$pkgver
+
+ export CC="gcc -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr --disable-static --libdir=/usr/lib32
+ make
+}
+
+package() {
+ cd $_pkgbasename-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ rm -r "$pkgdir/usr/include"
+
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list