summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b65b0a53aaa7d281b83000661e8d7f13755532d3 (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
# Maintainer:
# Contributor: asukaminato <asukaminato at nyan dot eu dot org>

pkgname=sassafras-git
pkgver=r261.32048ed
pkgrel=1
pkgdesc="Data analysis tool"
arch=('any')
url="https://github.com/georgeweigt/sassafras"
license=('BSD')
makedepends=('git' 'texlive-latex')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver(){
    cd "${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
    cd "${pkgname%-git}"
    make clean
    make
    make -C doc
}

check() {
    cd "${pkgname%-git}"
    make test
}

package() {
    cd "${pkgname%-git}"
    install -Dm755 sassafras -t "${pkgdir}/usr/bin/"
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname/"
    install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname%-git}/" doc/*.{pdf,tex,html}
}