summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 316613c0b85b3d2fe7165f6d84cccf8f75f21fe4 (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
# Maintainer: Manuel Coenen <manuel dot coenen at gmail dot com>
pkgname=getpgid-git
pkgver=r10.d501df2
pkgrel=1
pkgdesc="Executable around the gepgid(2) system call to get Process Group ID"
arch=('any')
url="https://github.com/wilriker/getpgid"
license=('MIT')
depends=('glibc>=2.12')
makedepends=('git'
'gcc'
'make') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/wilriker/getpgid")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname}"
	make
}

package() {
	cd "$srcdir/${pkgname}"

  mkdir -p ${pkgdir}/usr/bin
	make DESTDIR=$pkgdir install

  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: