diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..69c08072844d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = android-x86-64-json-c + pkgdesc = A JSON implementation in C (Android x86-64) + pkgver = 0.17 + pkgrel = 1 + url = https://github.com/json-c/json-c/wiki + arch = any + license = MIT + makedepends = android-cmake + depends = android-ndk + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://github.com/json-c/json-c/archive/refs/tags/json-c-0.17-20230812.tar.gz + md5sums = 6d724389b0a08c519d9dd6e2fac7efb8 + +pkgname = android-x86-64-json-c diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b5b03b115225 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.tar.xz +*.tar.gz +*.tar.bz2 +*.asc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2d89438b079e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org> +# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr> +# Contributor: congyiwu <congyiwu AT gmail DOT com> + +_android_arch=x86-64 + +pkgname=android-${_android_arch}-json-c +pkgver=0.17 +_pkgverdate=20230812 +pkgrel=1 +arch=('any') +pkgdesc="A JSON implementation in C (Android ${_android_arch})" +url="https://github.com/json-c/json-c/wiki" +license=('MIT') +depends=('android-ndk') +makedepends=('android-cmake') +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://github.com/json-c/json-c/archive/refs/tags/json-c-${pkgver}-${_pkgverdate}.tar.gz") +md5sums=('6d724389b0a08c519d9dd6e2fac7efb8') + +build() { + cd "${srcdir}/json-c-json-c-${pkgver}-${_pkgverdate}" + source android-env ${_android_arch} + + android-${_android_arch}-cmake \ + -DBUILD_STATIC_LIBS=ON \ + -DENABLE_THREADING=ON \ + -DENABLE_RDRAND=OFF \ + . + make $MAKEFLAGS +} + +package() { + cd "${srcdir}/json-c-json-c-${pkgver}-${_pkgverdate}" + source android-env ${_android_arch} + + make DESTDIR="$pkgdir" install + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so + ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a +} |