mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 19:22:10 +01:00
This replaces the various autotools commands by autoreconf which additionally updates config.sub and config.guess, that were kept and led json-c to fail on ppc64le due to this arch being relatively new. Signed-off-by: Fernando Seiti Furusato <ferseiti@linux.vnet.ibm.com>
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=json-c
|
|
pkgver=0.12.1
|
|
pkgrel=0
|
|
pkgdesc="A JSON implementation in C"
|
|
url="https://github.com/json-c/json-c/wiki"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="$depends_dev autoconf automake libtool"
|
|
install=""
|
|
subpackages="$pkgname-dev"
|
|
source="https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz
|
|
"
|
|
|
|
_builddir="$srcdir"/json-c-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
autoreconf -f -v -i
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
--disable-static \
|
|
--enable-shared \
|
|
|| return 1
|
|
make -j1 || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make -j1 DESTDIR="$pkgdir" install || return 1
|
|
}
|
|
|
|
md5sums="55f7853f7d8cf664554ce3fa71bf1c7d json-c-0.12.1.tar.gz"
|
|
sha256sums="2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123 json-c-0.12.1.tar.gz"
|
|
sha512sums="038676a0ce815e5174161fbd4339524feadc294d517f732fb408ad6aa7c4906423451c13386107569d9f24746a1a101564ca511e92e8276c5bf5b8c022ca42ed json-c-0.12.1.tar.gz"
|