# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=racktables _realname=RackTables pkgver=0.20.10 pkgrel=3 pkgdesc="Server room asset management" url="http://racktables.org" arch="noarch" license="GPL2" depends="php php-bcmath php-gd php-mysql php-pdo_mysql php-json" depends_dev= makedepends="$depends_dev" install= subpackages="$pkgname-doc" pkggroups="www-data" source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz slow-pages.patch" _builddir="$srcdir"/$_realname-$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" #make DESTDIR="$pkgdir" return 0 } package() { cd "$_builddir" export prefix="/usr/share/webapps" export datadir="${prefix}" export docdir="/usr/share/doc/RackTables" make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install-docs mkdir -p "$pkgdir"/etc/racktables chown :www-data "$pkgdir"/etc/racktables chmod 770 "$pkgdir"/etc/racktables sed -i "s%