summaryrefslogtreecommitdiffstats
path: root/testing/mytop/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2011-08-28 20:39:35 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2011-12-03 14:49:17 -0600
commit8cadc64a8e14a5233a57e458422a1826b682eb86 (patch)
tree7659f5e4c71e4fea135ed634149b3aac3175e0a2 /testing/mytop/APKBUILD
parent5cfb55a1cd5997b15213e2d61e6adee4a23005a0 (diff)
downloadaports-8cadc64a8e14a5233a57e458422a1826b682eb86.tar.bz2
aports-8cadc64a8e14a5233a57e458422a1826b682eb86.tar.xz
Initial APKBUILD for mytop
Package description: mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of a MySQL server.
Diffstat (limited to 'testing/mytop/APKBUILD')
-rw-r--r--testing/mytop/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/mytop/APKBUILD b/testing/mytop/APKBUILD
new file mode 100644
index 000000000..22191b6cb
--- /dev/null
+++ b/testing/mytop/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=mytop
+pkgver=1.6
+pkgrel=0
+pkgdesc="A top clone for MySQL"
+url="http://jeremy.zawodny.com/mysql/mytop/"
+arch="noarch"
+license="GPL2"
+depends="perl perl-term-readkey perl-dbd-mysql"
+depends_dev=""
+makedepends="perl-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://jeremy.zawodny.com/mysql/mytop/${pkgname}-${pkgver}.tar.gz"
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ sed -i 's#"long|!"#"long!"#' $pkgname || return 1
+}
+
+build() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make && make test || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="4127c3e486eb664fed60f40849372a9f mytop-1.6.tar.gz"