From 8cd447e15ca6b751b2b9d9d84307583ba845462f Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Thu, 19 Dec 2013 08:30:17 +0000 Subject: testing/racktables: move to main --- main/racktables/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 main/racktables/APKBUILD (limited to 'main/racktables/APKBUILD') diff --git a/main/racktables/APKBUILD b/main/racktables/APKBUILD new file mode 100644 index 0000000000..677e0de11a --- /dev/null +++ b/main/racktables/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Leonardo Arena +# Maintainer: +pkgname=racktables +_realname=RackTables +pkgver=0.20.6 +pkgrel=1 +pkgdesc="Server room asset management" +url="http://racktables.org" +arch="noarch" +license="GPL" +depends="php php-bcmath php-gd php-mysql php-pdo_mysql php-json" +depends_dev= +makedepends="$depends_dev" +install="$pkgname.post-install" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz" + +_builddir="$srcdir"/$_realname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here + return 0 +} + +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 + sed -i "s%