jobcore/libnl/PKGBUILD

54 lines
1.6 KiB
Bash

#!/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=libnl
pkgver=3.8.0
pkgrel=01
pkgdesc='Library for applications dealing with netlink sockets'
url='https://github.com/thom311/libnl/'
depends=('glibc' 'gcc-libs')
#options=('debug') # uncomment this to produce the debug package for libnl
provides=('libnl-3.so' 'libnl-cli-3.so' 'libnl-genl-3.so' 'libnl-idiag-3.so'
'libnl-nf-3.so' 'libnl-route-3.so' 'libnl-xfrm-3.so')
makedepends=(bison)
backup=(etc/libnl/classid
etc/libnl/pktloc)
source=(https://github.com/thom311/libnl/releases/download/libnl${pkgver//./_}/${pkgname}-${pkgver}.tar.gz{,.sig})
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--disable-ipv6 \
--disable-static
make
}
check() {
make -C $pkgname-$pkgver check
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL)
validpgpkeys=('49EA7C670E0850E7419514F629C2366E4DFC5728') # Thomas Haller
sha256sums=(bb726c6d7a08b121978d73ff98425bf313fa26a27a331d465e4f1d7ec5b838c6 # libnl-3.7.0.tar.gz
a7c522a2b4aeb455dea2305e7644fc1043c5cf297c76c7bfa0aaeee56a1d47b4) # libnl-3.8.0.tar.gz.sig
## 4484b6017db78b8f075fdb01461992bc754963dfe320b1910346015c8277a8cd libnl-3.8.0-01-x86_64.pkg.tar.lz