mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 13:47:15 +08:00
28 lines
887 B
Bash
28 lines
887 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
|
|
pkgname=json-c
|
|
pkgver=0.11
|
|
pkgrel=1
|
|
pkgdesc="JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects."
|
|
arch=('x86_64')
|
|
url="https://github.com/json-c/json-c/wiki"
|
|
license=('MIT')
|
|
depends=(glibc)
|
|
options=(!libtool !makeflags)
|
|
source=(https://s3.amazonaws.com/${pkgname}_releases/releases/$pkgname-${pkgver}.tar.gz)
|
|
sha256sums=('28dfc65145dc0d4df1dfe7701ac173c4e5f9347176c8983edbfac9149494448c')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
}
|