42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=jansson
|
|
pkgver=2.14
|
|
pkgrel=04
|
|
pkgdesc='C library for encoding, decoding and manipulating JSON data'
|
|
url='https://www.digip.org/jansson/'
|
|
depends=('glibc')
|
|
options=('staticlibs')
|
|
source=("https://github.com/akheron/jansson/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
CFLAGS+=' -ffat-lto-objects' \
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('MIT')
|
|
|
|
validpgpkeys=('B5D6953E6D5059ED7ADA0F2FD3657D24D058434C') # Petri Lehtinen <petri@digip.org>
|
|
|
|
sha256sums=(5798d010e41cf8d76b66236cfb2f2543c8d082181d16bc3085ab49538d4b9929 # jansson-2.14.tar.gz
|
|
a29cab18600e0439b5ef08cd71c9b8241c6467ec02a8af52a25ed3b95d109c1c) # jansson-2.14.tar.gz.asc
|
|
|
|
## 3ba5b76abd8f96d52566f7b2e5433ec862d25afc0ce09c82ae0cc4a37488c81f jansson-2.14-04-x86_64.pkg.tar.lz
|
|
|