jobextra/numactl/PKGBUILD

53 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/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=numactl
pkgver=2.0.18
pkgrel=01
pkgdesc="Simple NUMA policy support"
groups=( jobbot )
url="https://github.com/numactl/numactl"
depends=(glibc)
provides=(libnuma.so)
#options=(!debug) # uncomment this to produce the debug pkg
#source=("https://github.com/numactl/numactl/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
prepare(){
cd "${pkgname}-${pkgver}"
autoreconf -fiv
}
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd "${pkgname}-${pkgver}"
make -k test -C $pkgname-$pkgver || echo "Tests known to fail depending on system load."
}
package() {
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
# move_pages(2) is provided by man-pages and is more up-to-date there anyway
rm -rf "$pkgdir/usr/share/man/man2"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL-2.0-only LGPL-2.1-only)
sha256sums=(8cd6c13f3096e9c2293c1d732f56e2aa37a7ada1a98deed3fac7bd6da1aaaaf6) # numactl-2.0.18.tar.gz
## d45d525620b99403db465a2a4f3f5771e4bfd990717f3d3342d8797256054500 numactl-2.0.18-01-x86_64.pkg.tar.lz