diff options
Diffstat (limited to 'testing/mytop/APKBUILD')
-rw-r--r-- | testing/mytop/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/mytop/APKBUILD b/testing/mytop/APKBUILD new file mode 100644 index 0000000000..22191b6cb1 --- /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" |