2022-03-20 13:34:07 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2022-05-24 13:01:48 +02:00
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
2022-03-20 13:34:07 +01:00
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
2022-05-24 13:01:48 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:34:07 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=numactl
|
2024-01-17 19:39:18 +01:00
|
|
|
pkgver=2.0.17
|
2022-09-08 23:03:13 +02:00
|
|
|
pkgrel=01
|
2022-03-20 13:34:07 +01:00
|
|
|
pkgdesc="Simple NUMA policy support"
|
|
|
|
groups=( jobbot )
|
2022-09-08 23:03:13 +02:00
|
|
|
url="https://github.com/numactl/numactl"
|
2022-03-20 13:34:07 +01:00
|
|
|
depends=(glibc)
|
|
|
|
provides=(libnuma.so)
|
2022-05-24 13:01:48 +02:00
|
|
|
#options=(!debug) # uncomment this to produce the debug pkg
|
2022-09-08 23:03:13 +02:00
|
|
|
#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)
|
2022-03-20 13:34:07 +01:00
|
|
|
|
|
|
|
prepare(){
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
autoreconf -fiv
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr
|
2024-01-17 19:39:18 +01:00
|
|
|
# prevent excessive overlinking due to libtool
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2022-03-20 13:34:07 +01:00
|
|
|
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
|
2022-05-24 13:01:48 +02:00
|
|
|
install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
2022-03-20 13:34:07 +01:00
|
|
|
# move_pages(2) is provided by man-pages and is more up-to-date there anyway
|
|
|
|
rm -rf "$pkgdir/usr/share/man/man2"
|
|
|
|
}
|
|
|
|
|
2024-01-17 19:39:18 +01:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
|
|
|
|
|
|
|
license=(GPL-2.0-only LGPL-2.1-only)
|
|
|
|
|
|
|
|
sha512sums=('a2a76170b673b334c3f456a52b87d4991ac8e117934230e4594dba221354d38d03ba80c91d6d43a15bc5e9e31b30c94211061552710a671aa39a1318ec2fab88')
|
|
|
|
b2sums=('cbd342ae9efe5050fb6ff34b316ce2cea3f956b30057d98e7cd9ad68000524374f80c842c949a8431864286c6be3e52e0bd688a4c70db11dec47b6536f9de3f9')
|
2022-03-20 13:34:07 +01:00
|
|
|
|
2024-01-17 19:39:18 +01:00
|
|
|
sha256sums=(af22829cda8b5bdee3d280e61291697bbd3f9bd372afdf119c9348b88369d40b) # numactl-2.0.17.tar.gz
|
2022-03-20 13:34:07 +01:00
|
|
|
|
2024-01-17 19:39:18 +01:00
|
|
|
## 33cf405954642ccf610e00c614b6ae96e1a5580125189b3cdd2b056c9dd4ae9f numactl-2.0.17-01-x86_64.pkg.tar.lz
|
2022-09-08 23:03:13 +02:00
|
|
|
|