From a939dfa94f8fa0a6abdf167e3f13b2d082df0373 Mon Sep 17 00:00:00 2001 From: Jeff Cook Date: Mon, 12 Jun 2017 20:54:54 -0400 Subject: [PATCH 1/3] Update the git repository URL to Pagure. ... Fedora has moved repos from FedoraHosted to Pagure (pagure.io). --- PKGBUILD | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 22d5440..58fd753 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,14 +2,14 @@ pkgname=numad-git pkgver=0.5 -pkgrel=1 +pkgrel=2 pkgdesc="numad is a deamon that monitors NUMA topology and usage and distributes loads for good locality for the purpose of providing the best performance, by avoiding unnecessary latency." arch=('x86_64' 'i686') license=('LGPL') -url="https://git.fedorahosted.org/git/numad.git" +url="https://pagure.io/numad.git" options=() depends=('cmake' 'libsystemd' 'git') -source=("git+https://git.fedorahosted.org/git/numad.git") +source=("git+https://pagure.io/numad.git") md5sums=('SKIP') build() { diff --git a/README.md b/README.md index 66dae9e..0c7610b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # NUMA package for Archlinux AUR # numad is a deamon that monitors NUMA topology and usage and distributes loads for good locality for the purpose of providing the best performance, by avoiding unnecessary latency. -# source: https://git.fedorahosted.org/git/numad.git +# source: https://pagure.io/numad From 9124dbe26d1f609da3cc8775501863ac8b434420 Mon Sep 17 00:00:00 2001 From: Jeff Cook Date: Mon, 12 Jun 2017 22:18:00 -0400 Subject: [PATCH 2/3] Split depends and makedepends per VCS PKGBUILD guidelines. --- PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 58fd753..2c904bd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -8,7 +8,8 @@ arch=('x86_64' 'i686') license=('LGPL') url="https://pagure.io/numad.git" options=() -depends=('cmake' 'libsystemd' 'git') +depends=('libsystemd') +makedepends=('cmake' 'git') source=("git+https://pagure.io/numad.git") md5sums=('SKIP') From fd6b994514f3120797a61b939f38bb7dd22ce5ac Mon Sep 17 00:00:00 2001 From: Jeff Cook Date: Mon, 12 Jun 2017 22:18:27 -0400 Subject: [PATCH 3/3] Autogenerate `pkgver` from git commit history. --- PKGBUILD | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 2c904bd..a302980 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,8 +1,9 @@ # Maintainer: Paul Dunn pkgname=numad-git -pkgver=0.5 -pkgrel=2 +_pkgname=numad +pkgver=r20.abd1802 +pkgrel=1 pkgdesc="numad is a deamon that monitors NUMA topology and usage and distributes loads for good locality for the purpose of providing the best performance, by avoiding unnecessary latency." arch=('x86_64' 'i686') license=('LGPL') @@ -14,10 +15,15 @@ source=("git+https://pagure.io/numad.git") md5sums=('SKIP') build() { - cd "$srcdir/numad" + cd "${srcdir}/${_pkgname}" make } +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + package() { install -Dm755 $srcdir/numad/numad "$pkgdir/usr/bin/numad" install -Dm644 $srcdir/numad/numad.8 $pkgdir/usr/share/man/man8