summaryrefslogtreecommitdiffstats
path: root/testing/mytop/APKBUILD
blob: 22191b6cb117db50032e26ee5d27d7bd4ff05e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"