summaryrefslogtreecommitdiff
path: root/community/tinycdb/PKGBUILD
blob: dd9bce78eb8c4265093a0cfdd7b02bc881037d5a (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
# $Id: PKGBUILD 35507 2010-12-21 10:14:46Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=tinycdb
pkgver=0.77
pkgrel=3
pkgdesc="very fast and simple package for creating and reading constant data bases"
arch=(i686 x86_64 'mips64el')
url="http://www.corpit.ru/mjt/tinycdb.html"
license=("GPL")
depends=(glibc)
source=(http://www.corpit.ru/mjt/tinycdb/${pkgname}_$pkgver.tar.gz)
md5sums=('c00e5fb96c30356ac3b67b2ab5d5641b')

build() {
  cd $srcdir/$pkgname-$pkgver
  make sharedlib staticlib cdb

  install -D -m 0644 cdb.h $pkgdir/usr/include/cdb.h
  install -D -m 0644 cdb.3 $pkgdir/usr/share/man/man3/cdb.3
  install -D -m 0644 cdb.1 $pkgdir/usr/share/man/man1/cdb.1
  install -D -m 0644 cdb.5 $pkgdir/usr/share/man/man5/cdb.5
  install -D -m 0755 cdb $pkgdir/usr/bin/cdb
  install -D -m 0644 libcdb.a $pkgdir/usr/lib/libcdb.a
  install -D -m 0644 libcdb.so $pkgdir/usr/lib/libcdb.so
  install -D -m 0644 libcdb.so.1 $pkgdir/usr/lib/libcdb.so.1
}