summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2018-11-13 15:30:41 +0000
committerEric Engestrom2018-11-13 15:30:41 +0000
commita2d9065a8741c3f4bfaa52a1a67b743d79f370ec (patch)
tree4bceaf88e4adcac862efb2131240790cca4491c1
downloadaur-a2d9065a8741c3f4bfaa52a1a67b743d79f370ec.tar.gz
initial commit - v1.4.1
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD45
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4b4654ae216
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cmb
+ pkgdesc = combinatorics utility
+ pkgver = 1.4.1
+ pkgrel = 1
+ url = https://fraubsd.org/cmb
+ arch = x86_64
+ license = BSD
+ makedepends = libcmb
+ makedepends = awk
+ depends = openssl
+ depends = libcmb
+ source = https://github.com/FrauBSD/pkgcenter
+ sha256sums = SKIP
+
+pkgname = cmb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..74744cbd71b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
+
+pkgname=cmb
+pkgbase=cmb
+pkgver=1.4.1
+pkgrel=1
+pkgdesc="combinatorics utility"
+url="https://fraubsd.org/cmb"
+arch=('x86_64')
+license=('BSD')
+makedepends=('libcmb' 'awk')
+depends=('openssl' 'libcmb')
+source=("git+https://github.com/FrauBSD/pkgcenter")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd pkgcenter/depend/cmb
+ awk 'match($$0, /\$Version: [^$]* \$/) {
+ print substr($0, RSTART + 10, RLENGTH - 12);
+ exit found=1;
+ } END { exit !found }' cmb.c
+}
+
+prepare() {
+ cd pkgcenter/depend/cmb
+ ./configure --prefix /usr
+}
+
+build() {
+ cd pkgcenter/depend/cmb
+ make
+}
+
+package() {
+ cd pkgcenter/depend/cmb
+
+ # Disabled for now because DESTDIR isn't respected
+ #DESTDIR="$pkgdir" make install
+
+ install -dm755 "$pkgdir"/usr/bin
+ install -m755 cmb "$pkgdir"/usr/bin/
+
+ install -dm755 "$pkgdir"/usr/share/man/man1
+ install -m444 cmb.1.gz "$pkgdir"/usr/share/man/man1/
+}