[arch-commits] Commit in lib32-json-c/repos (multilib-x86_64 multilib-x86_64/PKGBUILD)
Jan Steffens
heftig at archlinux.org
Thu Aug 30 19:23:55 UTC 2018
Date: Thursday, August 30, 2018 @ 19:23:55
Author: heftig
Revision: 375677
archrelease: copy trunk to multilib-x86_64
Added:
lib32-json-c/repos/multilib-x86_64/
lib32-json-c/repos/multilib-x86_64/PKGBUILD
(from rev 375676, lib32-json-c/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: lib32-json-c/repos/multilib-x86_64/PKGBUILD (from rev 375676, lib32-json-c/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD (rev 0)
+++ multilib-x86_64/PKGBUILD 2018-08-30 19:23:55 UTC (rev 375677)
@@ -0,0 +1,57 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=lib32-json-c
+pkgver=0.13.1
+pkgrel=2
+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 json-c)
+makedepends=(git)
+_commit=985c46fec39d1d3043f98e8d8cdb9d040131b3bb # tags/json-c-0.13.1-20180305^0
+source=("git+https://github.com/json-c/json-c#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd json-c
+ local tag="$(git describe --tags --abbrev=0)"
+ local ver="$(git describe --tags)"
+ echo "${tag%-*}${ver#$tag}" | sed 's/^json-c-//;s/-/+/g'
+}
+
+prepare() {
+ cd json-c
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd json-c
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --disable-static \
+ --enable-threading
+ make
+}
+
+check() {
+ cd json-c
+ make check
+}
+
+package() {
+ cd json-c
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir/usr/include"
+
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s json-c "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list