1 # Contributor: Mildred <mildred593 at online dot fr>
6 pkgdesc="collect useful bits and pieces of C++ code"
7 url="http://web.mornfall.net/libwibble.html"
9 makedepends=('darcs' 'cmake' 'tut-framework' 'boost')
20 _trunk="http://repos.mornfall.net/libwibble/"
29 cd "$startdir/src/" || return 1
30 if [ -d libwibble ]; then
31 cd libwibble || return 1
32 if [ darcs = "$pkgver" ]; then
33 _log darcs pull || return 1
36 if [ darcs = "$pkgver" ]; then
37 _log darcs get "${_trunk}" || return 1
39 _log darcs get --tag="$pkgver" "${_trunk}" || return 1
41 cd libwibble || return 1
43 [ -d build ] || _log mkdir build
46 #for f in ../wibble/tests.h ../wibble/tests.cpp; do
47 # if [ -e "$f" ]; then
48 # _log mv "$f" "$f.old" || return 1
51 #msg "Patching ../wibble/CMakeLists.txt"
53 # 's/ADD_SUBDIRECTORY( tests )/# ADD_SUBDIRECTORY( tests )/' \
54 # ../wibble/CMakeLists.txt \
55 # | sed 's/XXX_BUILD_TESTING/NO/' \
56 # > CMakeLists.txt.new || return 1
57 #cat CMakeLists.txt.new \
58 # > ../wibble/CMakeLists.txt || return 1
60 -D CMAKE_INSTALL_PREFIX:PATH=/usr \
63 _log make DESTDIR="$startdir/pkg/" install || return 1