summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3edaa449c5e8883e0e3dbd009b9d0a02bbfcd468 (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
# Maintainer: George Rawlinson <grawlinson@archlinux.org>

pkgname=procenv
pkgver=0.60
pkgrel=1
pkgdesc='Utility to show process environment'
arch=('x86_64')
url='https://github.com/jamesodhunt/procenv'
license=('GPL3')
depends=('apparmor' 'libcap' 'numactl')
makedepends=('git')
checkdepends=('check' 'expat' 'groff')
_commit='349157f839d14f4d4f3061b793597d33a5ac71ba'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd "$pkgname"

  git describe --tags | sed 's/^v//'
}

build() {
  cd "$pkgname"

  autoreconf -fi

  ./configure \
    --prefix=/usr \
    --enable-reproducible-build

  make
}

check() {
  cd "$pkgname"

  make check
}

package() {
  cd "$pkgname"

  make DESTDIR="$pkgdir" install
}