commit a3abfaeeabd9a498f08ec3671415887519c941fa Author: xhaa123 Date: Sun Nov 3 20:22:37 2024 +0800 jansson 2.14-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3164a4a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=jansson +pkgver=2.14 +pkgrel=1 +pkgdesc="C library for encoding, decoding and manipulating JSON data" +arch=('x86_64') +url="https://www.digip.org/jansson" +license=('MIT') +depends=('glibc') +source=(https://github.com/akheron/jansson/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2) +sha256sums=(fba956f27c6ae56ce6dfd52fbf9d20254aad42821f74fa52f83957625294afb9) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} --disable-static + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}