APKBUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Contributor: sick <sick@rape.lol>
  2. # Maintainer: sick <sick@rape.lol>
  3. pkgname=cdb
  4. pkgver=0.75
  5. pkgrel=0
  6. pkgdesc="A fast, reliable, simple package for creating and reading constant databases"
  7. url="http://cr.yp.to/cdb.html"
  8. arch="all"
  9. license="Public Domain"
  10. depends=""
  11. makedepends="$depends"
  12. subpackages=""
  13. source="http://cr.yp.to/cdb/$pkgname-$pkgver.tar.gz
  14. fix-errno.patch
  15. "
  16. builddir="$srcdir/$pkgname-$pkgver"
  17. prepare() {
  18. default_prepare
  19. sed -i 's:/usr/local:/usr:' "$builddir"/conf-home
  20. }
  21. build() {
  22. cd "$builddir"
  23. make || return 1
  24. }
  25. #check() {
  26. # cd "$builddir"
  27. # ./cdb
  28. package() {
  29. cd "$builddir"
  30. mkdir -p $pkgdir/usr/bin
  31. install -m0755 cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv \
  32. cdbstats cdbtest $pkgdir/usr/bin/
  33. }
  34. sha512sums="6faeab91a77457348b58f685e81000b83fb609691317198a06284c5c62dee1e4d6138f90be1e727021f279d740169c175a21b23c96adb39a654e3f7fafdf36c0 cdb-0.75.tar.gz
  35. 7ba7ad55133d545f6737e57339c9c6c96cfc603923b10e08ef344574f2004545bec1662a43bfbc2070c9dd120cbc92b69b2564c6cddc90c52fe77eb0b42ff34d fix-errno.patch"