#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=jansson
pkgver=2.14
pkgrel=02
pkgdesc='C library for encoding, decoding and manipulating JSON data'
arch=('x86_64')
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"
}

#---- license gpg-key sha256sums ----

license=('MIT')

validpgpkeys=('B5D6953E6D5059ED7ADA0F2FD3657D24D058434C') # Petri Lehtinen <petri@digip.org>

sha256sums=(5798d010e41cf8d76b66236cfb2f2543c8d082181d16bc3085ab49538d4b9929 # jansson-2.14.tar.gz
	a29cab18600e0439b5ef08cd71c9b8241c6467ec02a8af52a25ed3b95d109c1c) # jansson-2.14.tar.gz.asc

