summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89918d9249a9d0b4c2aa3e64224db05ba4246e0c (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=bgrep-git
pkgver=0.2.r86.g4401646
pkgrel=3
pkgdesc='Binary Grep'
arch=('i686' 'x86_64')
url='https://github.com/rsharo/bgrep'
license=('BSD')
makedepends=('git')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("$pkgname::git+$url")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/$pkgname"
	./remove_cruft.sh
	./bootstrap
	./configure
	make
}

check() {
	cd "$srcdir/$pkgname/test"
	make
}

package() {
	cd "$srcdir/$pkgname"
	make DESTDIR="$pkgdir/" prefix="/usr" install
}