summaryrefslogtreecommitdiff
path: root/community/cdbxx/PKGBUILD
blob: 0d8075a0c6b07ec48bedd9a87b03f6027dab2918 (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
29
# $Id: PKGBUILD 100138 2013-11-01 20:21:49Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=cdbxx
pkgver=0.0.1rc2
pkgrel=4
pkgdesc="cdbxx is a small STL style C++ library for TinyCDB implementation of Constant Database"
arch=(i686 x86_64)
url="http://cdbxx.sourceforge.net/"
license=("GPL")
depends=(gcc)
makedepends=(tinycdb)
source=(http://downloads.sourceforge.net/sourceforge/cdbxx/$pkgname-$pkgver.tar.bz2)
md5sums=('8c7f3eebe5c090ddea4aebf5445a1621')

build() {
  cd $srcdir/$pkgname-$pkgver

  sed -i 's#LDFLAGS = -Wl,-rpath,$(shell pwd)/../src/ -L../src/ -lcdbxx#LDFLAGS = -Wl,-rpath,$(shell pwd)/../src/ -L../src/ -lcdbxx -lcdb#' ./testsuite/Makefile
  sed -i '1,2i#include <string.h>' src/db.cc

  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
}