49 lines
1.7 KiB
Bash
49 lines
1.7 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.14
|
|
pkgrel=03
|
|
pkgdesc="Simple NUMA policy support"
|
|
arch=(x86_64)
|
|
groups=( jobbot )
|
|
# url="http://oss.sgi.com/projects/libnuma/" ## Joborun note: This is false, sgi.com has not existed since 2014 when its last bankrupt remains were obtained by receivers of debt.
|
|
## Instead the author is an ex-employee and a few contributors, but the initial 2.0 SGI code is still under the code. The url is false though, surprisingly nobody in Arch has noticed for 7 years.
|
|
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")
|
|
|
|
prepare(){
|
|
cd "${pkgname}-${pkgver}"
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr
|
|
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"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('LGPL2.1' 'GPL2')
|
|
|
|
sha256sums=(826bd148c1b6231e1284e42a4db510207747484b112aee25ed6b1078756bcff6) # numactl-2.0.14.tar.gz
|
|
|