This commit is contained in:
joborun linux 2023-08-28 13:59:10 +03:00
parent 0b2df8a64d
commit be705ade01
5 changed files with 106 additions and 0 deletions

55
yajl/PKGBUILD Normal file
View File

@ -0,0 +1,55 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=yajl
pkgver=2.1.0
pkgrel=06
pkgdesc='Yet Another JSON Library'
url='https://lloyd.github.com/yajl/'
depends=('glibc')
makedepends=('cmake')
provides=('libyajl.so')
#source=("$pkgname-$pkgver.tar.gz::https://github.com/lloyd/$pkgname/archive/$pkgver.tar.gz")
source=("$pkgname-$pkgver.tar.gz::https://github.com/lloyd/$pkgname/archive/refs/tags/$pkgver.tar.gz")
build() {
cd "$pkgname-$pkgver"
export CFLAGS+=" -ffat-lto-objects"
cmake -DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_BUILD_TYPE='None' \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build
}
check() {
cd "$pkgname-$pkgver"
make VERBOSE=1 -C build test
make VERBOSE=1 -C build test-api
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install -C build
install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/${pkgname}"
install -vDm 644 {ChangeLog,README,TODO} -t "$pkgdir/usr/share/doc/${pkgname}"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('ISC')
b2sums=('755ee1d9f8c59b730393468722dae9148cd63443a0c91f0e1894f5998b699303920b8f0748541bd280d132ee1c9dedd40ebc2a7e020a8fe65beb186f25af5402')
sha512sums=('9e786d080803df80ec03a9c2f447501e6e8e433a6baf636824bc1d50ecf4f5f80d7dfb1d47958aeb0a30fe459bd0ef033d41bc6a79e1dc6e6b5eade930b19b02') # yajl-2.1.0.tar.gz
sha256sums=(3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a) # yajl-2.1.0.tar.gz
## e9ea658e26433aed131ffc19bc2692eb71a7d6f883f4997e04f6ae0a5c4f3c8e yajl-2.1.0-06-x86_64.pkg.tar.lz

43
yajl/PKGBUILD-arch Normal file
View File

@ -0,0 +1,43 @@
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Dave Reisner <d@falconindy.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
pkgname=yajl
pkgver=2.1.0
pkgrel=5
pkgdesc='Yet Another JSON Library'
arch=('x86_64')
url='https://lloyd.github.com/yajl/'
license=('ISC')
depends=('glibc')
makedepends=('cmake')
provides=('libyajl.so')
source=("$pkgname-$pkgver.tar.gz::https://github.com/lloyd/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('9e786d080803df80ec03a9c2f447501e6e8e433a6baf636824bc1d50ecf4f5f80d7dfb1d47958aeb0a30fe459bd0ef033d41bc6a79e1dc6e6b5eade930b19b02')
b2sums=('755ee1d9f8c59b730393468722dae9148cd63443a0c91f0e1894f5998b699303920b8f0748541bd280d132ee1c9dedd40ebc2a7e020a8fe65beb186f25af5402')
build() {
cd "$pkgname-$pkgver"
export CFLAGS+=" -ffat-lto-objects"
cmake -DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_BUILD_TYPE='None' \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build
}
check() {
cd "$pkgname-$pkgver"
make VERBOSE=1 -C build test
make VERBOSE=1 -C build test-api
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install -C build
install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/${pkgname}"
install -vDm 644 {ChangeLog,README,TODO} -t "$pkgdir/usr/share/doc/${pkgname}"
}

1
yajl/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,yajl*.tar.gz*}

3
yajl/deps Normal file
View File

@ -0,0 +1,3 @@
cmake

4
yajl/time Normal file
View File

@ -0,0 +1,4 @@
real 0m6.741s
user 0m8.740s
sys 0m1.534s