summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 732ff61d6fbf92f64ade7f7d70c06a39bad0f1b6 (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
# Maintainer: Manhong Dai <daimh@umich.edu>
pkgname=mgrep-git
pkgver=r11.2436ce6
pkgrel=1
pkgdesc="print lines that match millions of strings efficiently"
arch=('x86_64')
url="http://brainarray.mbni.med.umich.edu/mgrep/"
license=('GPL')
groups=()
depends=('gcc-libs')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=($pkgname::git+https://github.com/daimh/mgrep.git)
noextract=()
md5sums=('SKIP') #autofill using updpkgsums
build() {
	cd $pkgname
	./configure
	make
	rm -f man/mgrep.1.gz
	gzip man/mgrep.1
}
check() {
	$pkgname/src/mgrep --version
}
package() {
	install -Dm755 $pkgname/src/mgrep "$pkgdir/usr/bin/mgrep"
	install -Dm644 $pkgname/man/mgrep.1.gz "$pkgdir/usr/share/man/man1/mgrep.1.gz"
}
pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}