summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abd68513b5ce3f56d9dba3816d8361fce7ab78bf (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
# Maintainer: Thomas Gläßle <t_glaessle@gmx.de>
_pkgname=citip
pkgname=citip-git
pkgver=2020_07_23..6e46631
pkgrel=1
pkgdesc="Information Theoretic Inequality Prover (CLI)"
arch=('any')
url="https://github.com/coldfix/Citip"
license=('GPL3')
depends=('glpk' )
makedepends=('glpk' 'bison' 'flex')

provides=("$_pkgname")
source=("$_pkgname::git+https://github.com/coldfix/${_pkgname}")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git log -1 --format='%cd..%h' --date=short | tr - _
}

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

package() {
  cd "$srcdir/$_pkgname"

  mkdir -p "$pkgdir/usr/bin"
  install -m755 Citip "$pkgdir/usr/bin"
}