summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d44e12127636cd721197f97993ed7dbb75b9afe7 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=outils-git
pkgver=0.6.r8.g5f5e832
pkgrel=1
epoch=
pkgdesc="A port of some non-standard OpenBSD tools to Linux."
arch=('i686' 'x86_64')
url="https://github.com/chneukirchen/outils"
license=('custom')
groups=()
depends=('')
makedepends=('git' 'openssl')
optdepends=()
checkdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
changelog=
install=
source=("$pkgname::git+https://github.com/chneukirchen/outils")
noextract=()
md5sums=('SKIP')

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/" install
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}