mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:37:14 +08:00
28 lines
662 B
Bash
28 lines
662 B
Bash
pkgname=json-c
|
|
pkgver=0.12
|
|
pkgrel=2
|
|
url="https://github.com/json-c/json-c/wiki"
|
|
arch=('x86_64')
|
|
url="https://github.com/json-c/json-c/wiki"
|
|
license=('MIT')
|
|
depends=(glibc)
|
|
source=(https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
|
|
sha256sums=('000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
CFLAGS="$CFLAGS -Wno-error"
|
|
./configure --prefix=/usr --disable-static
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
} |