summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorkyechou2019-04-13 16:15:38 -0500
committerkyechou2019-04-13 16:18:09 -0500
commit34d360584add34fcd4a43a9cc71cad38a5b08e93 (patch)
tree61b5ae49c8e6e39fac0ccc4c274a000b70cf3765 /PKGBUILD
downloadaur-34d360584add34fcd4a43a9cc71cad38a5b08e93.tar.gz
Initial commit 1.3
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4eac60f44ff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Kuan-Yen Chou <kuanyenchou@gmail.com>
+
+pkgname=libredblack
+pkgver=1.3
+pkgrel=1
+pkgdesc='RedBlack balance tree searching and sorting library'
+depends=()
+makedepends=('gcc' 'make' 'python2')
+arch=('any')
+url='http://libredblack.sourceforge.net/'
+license=('LGPL')
+source=("$pkgname-$pkgver.tar.gz"::"https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz/download"
+ 'rbgen.in.patch')
+sha256sums=('a0ecc59b0aae2df01558a6950532c711a782a099277b439a51d270003092f44f'
+ '15df219b5b472299198b67405d5ea2431ae82ac307ff9625a9ea381b50ef6f82')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 < "$srcdir/rbgen.in.patch"
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --with-python=/usr/bin/python2
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: set sw=4 ts=4 et: