[arch-commits] Commit in numactl/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Fri Feb 4 00:30:56 UTC 2022


    Date: Friday, February 4, 2022 @ 00:30:56
  Author: dvzrv
Revision: 436168

upgpkg: numactl 2.0.14-2: Rebuild to simplify file.

Simplify quoting in file.
Simplify calls to make.
Add note explaining why debug package is not available.

Modified:
  numactl/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-03 22:27:27 UTC (rev 436167)
+++ PKGBUILD	2022-02-04 00:30:56 UTC (rev 436168)
@@ -4,13 +4,14 @@
 
 pkgname=numactl
 pkgver=2.0.14
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple NUMA policy support"
-arch=('x86_64')
+arch=(x86_64)
 url="http://oss.sgi.com/projects/libnuma/"
-license=('LGPL2.1' 'GPL2')
-depends=('glibc')
-provides=('libnuma.so')
+license=(LGPL2.1 GPL2)
+depends=(glibc)
+provides=(libnuma.so)
+# NOTE: debug pkg currently unavailable as it contains /build dir
 source=("https://github.com/numactl/numactl/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
 sha512sums=('28b95985d6b2f26c5f6f15fe235224c998c86f534adf5fdaa355a292cf2fd65515c91ba2a76c899d552d439b18ea1209a1712bd6755f8ee3a442f3935993b2e6')
 b2sums=('5f2abe25061ac29ecad8a6b24fe800d72c3538d9a155358f4b329ed1140053c7dbd93f01891904f76db94ed01113a34b4ebcbbf40e4060caf747958785ac9590')
@@ -17,7 +18,7 @@
 
 prepare(){
   cd "${pkgname}-${pkgver}"
-  autoreconf -vfi
+  autoreconf -fiv
 }
 
 build() {
@@ -27,14 +28,12 @@
 }
 
 check() {
-  cd "${pkgname}-${pkgver}"
-  make -k test || echo "Tests known to fail depending on system load."
+  make -k test -C $pkgname-$pkgver || echo "Tests known to fail depending on system load."
 }
 
 package() {
-  cd "${pkgname}-${pkgver}"
-  make DESTDIR="$pkgdir" install
+  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"
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list