summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9a538d747a071e20199df8bcb8cc79ef72c33b8 (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: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=libcmb
pkgver=3.5.6
pkgrel=1
pkgdesc="combinatorics library"
url="https://fraubsd.org/libcmb"
arch=('x86_64')
license=('BSD')
makedepends=('awk')
depends=('openssl')
source=("git+https://github.com/FrauBSD/pkgcenter")
sha256sums=('SKIP')

pkgver() {
  cd pkgcenter/depend/libcmb
  awk 'match($$0, /\$Version: [^$]* \$/) {
         print substr($0, RSTART + 10, RLENGTH - 12);
         exit found=1;
       } END { exit !found }' cmb.c | cut -d' ' -f2
}

build() {
  cd pkgcenter/depend/libcmb
  ./configure --prefix "$pkgdir/usr"
  make
}

package() {
  cd pkgcenter/depend/libcmb
  make install
}