summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c49deb60fa4cb8e54e8a1aea9a741da975a536fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=numactl-git
pkgver=2.0.16.r52.ga3a2a82
pkgrel=1
pkgdesc="Simple NUMA policy support"
arch=('i686' 'x86_64')
url="https://github.com/numactl/numactl"
license=('GPL' 'LGPL')
depends=('glibc')
makedepends=('git')
provides=("numactl=$pkgver" 'libnuma.so')
conflicts=('numactl')
options=('staticlibs')
source=("git+https://github.com/numactl/numactl.git")
sha256sums=('SKIP')


pkgver() {
  cd "numactl"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "numactl"

  ./autogen.sh
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "numactl"

  #make check
}

package() {
  cd "numactl"

  make DESTDIR="$pkgdir" install

  # move_pages(2) is provided by man-pages and is more up-to-date there anyway
  rm -r "$pkgdir/usr/share/man/man2"
}