summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a94bcf0efad1925dfa582c4456d66a22dfd91d84 (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
# Maintainer: Gunar C. Gessner <me@gunargessner.com>
_pkgname="reredirect"
pkgname="${_pkgname}-git"
pkgver=146
pkgrel=1
pkgdesc="Tool to dynamicly redirect outputs of a running process"
arch=("i686" "x86_64")
url="https://github.com/jerome-pouiller/reredirect"
license=('MIT')
groups=()
depends=('glibc')
makedepends=('git')
optdepends=()
provides=('reredirect')
conflicts=('reredirect')
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::git+http://github.com/jerome-pouiller/${_pkgname}.git")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git rev-list --count HEAD
}

build() {
  cd "$pkgname"
  make
}

package() {
  cd "$pkgname"
  install -D -m 644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
  make PREFIX=/usr DESTDIR="$pkgdir/" install
}