iglunix/extra/json-c/build.sh

31 lines
516 B
Bash
Raw Normal View History

2021-12-26 12:40:14 +00:00
pkgname=json-c
pkgver=0.15
2021-09-11 08:24:20 +00:00
fetch() {
2021-12-26 12:40:14 +00:00
curl -L "https://s3.amazonaws.com/json-c_releases/releases/json-c-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
2021-09-11 08:24:20 +00:00
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2021-12-26 12:40:14 +00:00
-DCMAKE_INSTALL_LIBDIR=lib
2021-09-11 08:24:20 +00:00
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}