summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 970a309ca904ab15e7f1d6c38904804f542359b0 (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
44
45
46
47
# Maintainer: Lev Levitsky <levlev<at>mail.ru>
pkgname=regtools-git
pkgver=0.6.0.r0.9221a19
pkgrel=2
pkgdesc="Tools that integrate DNA-seq and RNA-seq data to help interpret mutations in a regulatory and splicing context"
arch=('any')
url="https://github.com/griffithlab/regtools"
license=('MIT')
groups=()
depends=()
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/griffithlab/regtools.git')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd "$srcdir/${pkgname%-git}"

    # Git, tags available
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/${pkgname%-git}"
    mkdir build
    cd build
	cmake ..
	make
}

package() {
    install -d "$pkgdir/usr/share/licenses/$pkgname"
    cd "$srcdir/${pkgname%-git}"
    install LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
	cd build
    install -d "$pkgdir/usr/bin"
	install "${pkgname%-git}" "$pkgdir/usr/bin/"
}