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

David Runge dvzrv at archlinux.org
Thu May 16 17:33:21 UTC 2019


    Date: Thursday, May 16, 2019 @ 17:33:21
  Author: dvzrv
Revision: 353469

upgpkg: numactl 2.0.12-2

Updating maintainer. Running autoreconf in prepare(). Running tests in check(). Adding README.

Modified:
  numactl/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-16 17:30:31 UTC (rev 353468)
+++ PKGBUILD	2019-05-16 17:33:21 UTC (rev 353469)
@@ -1,26 +1,38 @@
-# Maintainer: Dan McGee <dan at archlinux.org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Dan McGee <dan at archlinux.org>
 # Contributor: Florian Zeitz <florob at babelmonkeys dot de>
 
 pkgname=numactl
 pkgver=2.0.12
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple NUMA policy support"
 arch=('x86_64')
 url="http://oss.sgi.com/projects/libnuma/"
 license=('LGPL2.1' 'GPL2')
 depends=('perl')
-source=(https://github.com/numactl/numactl/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('55bbda363f5b32abd057b6fbb4551dd71323f5dbb66335ba758ba93de2ada729')
+source=("https://github.com/numactl/numactl/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('316b10f50e6eee4cee9cf191f19381ec4a61980354eec3f9fe43fef21465bee28a82adeb9c235d4877e82950ccd14c9473b79fd1e2f5a7f598ec2fac230780ff')
 
+prepare(){
+  cd "${pkgname}-${pkgver}"
+  autoreconf -vfi
+}
+
 build() {
-  cd "$srcdir/$pkgname-${pkgver/_/-}"
+  cd "${pkgname}-${pkgver}"
   ./configure --prefix=/usr
   make
 }
 
+check() {
+  cd "${pkgname}-${pkgver}"
+  make -k test || msg "Tests known to fail depending on system load."
+}
+
 package() {
-  cd "$srcdir/$pkgname-${pkgver/_/-}"
+  cd "${pkgname}-${pkgver}"
   make DESTDIR="$pkgdir" install
   # 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