# Contributor: ScrumpyJack # Maintainer: ScrumpyJack pkgname=ciwiki pkgver=2.0.3 pkgrel=0 pkgdesc="A personal lightweight wiki written in C" url="http://ciwiki.sourceforge.net/" arch="all" license="GPL3" depends="" depends_dev="" makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz" _builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --libexecdir=/usr/lib/ciwiki \ || return 1 make } package() { cd "$_builddir" make install DESTDIR="$pkgdir" } md5sums="5c4e5e14e99566bd6ea430747ff8f6dd ciwiki-2.0.3.tar.gz" sha256sums="ffd23f8b9a3769c2aaf191b24092fb65c0b3fe9ea5831a1a53e7822678ce2569 ciwiki-2.0.3.tar.gz" sha512sums="eaccbe366ec3215993471d371f2c4d885139dbb6afae2767cf1cd4580555054524591b0e77a4281d00f52dafa0ee93d532ac49ed6b486885f813340debab45f2 ciwiki-2.0.3.tar.gz"