summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0dcaf13ff8c8fbc45a2ae0357c5b860e68376ee1 (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
# Maintainer: Bipin Kumar <bipin@ccmb.res.in>
pkgname=cdbfasta-git 
pkgver=r4.014498c
pkgrel=1
pkgdesc="CDB (Constant DataBase) indexing and retrieval tools for FASTA files"
arch=(x86_64)
url="https://github.com/gpertea/cdbfasta"
license=('Artistic2.0')
makedepends=('git')
depends=('gcc-libs' 'zlib')
provides=(""${pkgname%-VCS}"")
source=(''cdbfasta-git::git+https://github.com/gpertea/cdbfasta.git'')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname}"
	# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname}"
	make
}

package() {
	cd "$srcdir/${pkgname}"
	for bin in {cdbfasta,cdbyank}
  do
    install -D -m755 "${srcdir}/$pkgname/${bin}" "$pkgdir"/usr/bin/${bin}
  done

}