blob: ec928f79be4b1f51e53caa41e7291158c44cea2c (
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
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=tavor-git
pkgver=20160321
pkgrel=2
pkgdesc="A generic fuzzing and delta-debugging framework"
arch=('i686' 'x86_64')
makedepends=('git' 'go' 'make')
url="https://github.com/zimmski/tavor"
license=('MIT')
source=(git+https://github.com/zimmski/tavor)
sha256sums=('SKIP')
provides=('tavor')
conflicts=('tavor')
pkgver() {
cd ${pkgname%-git}
git log -1 --format="%cd" --date=short --no-show-signature | sed "s|-||g"
}
build() {
export GOPATH="$srcdir"
msg2 'Building...'
TMPDIR=/tmp go get -v github.com/zimmski/tavor/
cd "$GOPATH/src/github.com/zimmski/tavor"
make
}
package() {
cd ${pkgname%-git}
msg2 'Installing documentation...'
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/tavor"
cp -dpr --no-preserve=ownership doc examples "$pkgdir/usr/share/doc/tavor"
msg2 'Installing bash completion...'
install -Dm 644 cmd/tavor/tavor-bash_completion.sh \
"$pkgdir/usr/share/bash-completion/completions/tavor"
msg2 'Installing executable...'
install -Dm 755 "$srcdir/bin/tavor" -t "$pkgdir/usr/bin"
}
|