summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5fe29d3af6002b2c2afdc44dbc0fe5f58665d0a8 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=numactl-git
pkgver=2.0.12.r6.gbad479d
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')
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"
}