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

pkgname=oblibs
pkgdesc='Obarun C library'
pkgver=0.1.4.0
pkgrel=06
url='https://git.obarun.org/Obarun/oblibs.git'
track=tag
groups=(s6-suite)
depends=("skalibs>=2.13.1.1" "execline>=2.9.3.0")
makedepends=(git "skalibs>=2.13.1.1" "execline>=2.9.3.0")
target="v${pkgver}"
source=("$pkgname::git+https://git.obarun.org/Obarun/${pkgname}#${track}=${target}")

build() {
    cd "$pkgname"
    ./configure \
        --prefix=/usr \
        --enable-static \
        --disable-shared
    make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir" install
  install -Dm 0644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=('ISC')

sha256sums=(SKIP)

##  54aacf87c190eb5610aef44bdd0d6ee1724fa16051881089caad3b9d4297f152  oblibs-0.1.4.0-06-x86_64.pkg.tar.lz

