summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c99c41c0d33f10a40537e3e17f91e90bf0277f09 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=outils-git
pkgver=0.13.r2.g6864fc3
pkgrel=1
pkgdesc='A port of some non-standard OpenBSD tools to Linux.'
arch=('i686' 'x86_64')
url='https://github.com/chneukirchen/outils'
license=('custom')
makedepends=('git' 'openssl')
source=("$pkgname::git+$url")
md5sums=('SKIP')

prepare() {
	cd "$srcdir/$pkgname"
	sed -i 's@/share/man@/man@g' Makefile
}

pkgver() {
	cd "$srcdir/$pkgname"
	git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
}

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

package() {
	cd "$srcdir/$pkgname"
	make DESTDIR="$pkgdir/" PREFIX="/usr/outils" install
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}