|
@@ -0,0 +1,39 @@
|
|
|
+# Contributor: sick <sick@rape.lol>
|
|
|
+# Maintainer: sick <sick@rape.lol>
|
|
|
+pkgname=cdb
|
|
|
+pkgver=0.75
|
|
|
+pkgrel=0
|
|
|
+pkgdesc="A fast, reliable, simple package for creating and reading constant databases"
|
|
|
+url="http://cr.yp.to/cdb.html"
|
|
|
+arch="all"
|
|
|
+license="Public Domain"
|
|
|
+depends=""
|
|
|
+makedepends="$depends"
|
|
|
+subpackages=""
|
|
|
+source="http://cr.yp.to/cdb/$pkgname-$pkgver.tar.gz
|
|
|
+ fix-errno.patch
|
|
|
+ "
|
|
|
+builddir="$srcdir/$pkgname-$pkgver"
|
|
|
+
|
|
|
+prepare() {
|
|
|
+ default_prepare
|
|
|
+ sed -i 's:/usr/local:/usr:' "$builddir"/conf-home
|
|
|
+}
|
|
|
+
|
|
|
+build() {
|
|
|
+ cd "$builddir"
|
|
|
+ make || return 1
|
|
|
+}
|
|
|
+
|
|
|
+#check() {
|
|
|
+# cd "$builddir"
|
|
|
+# ./cdb
|
|
|
+package() {
|
|
|
+ cd "$builddir"
|
|
|
+ mkdir -p $pkgdir/usr/bin
|
|
|
+ install -m0755 cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv \
|
|
|
+ cdbstats cdbtest $pkgdir/usr/bin/
|
|
|
+}
|
|
|
+
|
|
|
+sha512sums="6faeab91a77457348b58f685e81000b83fb609691317198a06284c5c62dee1e4d6138f90be1e727021f279d740169c175a21b23c96adb39a654e3f7fafdf36c0 cdb-0.75.tar.gz
|
|
|
+7ba7ad55133d545f6737e57339c9c6c96cfc603923b10e08ef344574f2004545bec1662a43bfbc2070c9dd120cbc92b69b2564c6cddc90c52fe77eb0b42ff34d fix-errno.patch"
|