blob: eee32516618d2ce014e9d9f41304063e995b4b0c (
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
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=mtop
pkgver=0.6.6
pkgrel=3
pkgdesc="MySQL top (monitor and examine slow queries)"
arch=('i686' 'x86_64')
url="http://mtop.sourceforge.net/"
license=('GPL')
depends=(perl perl-dbi libmysqlclient perl-dbd-mysql perl-curses)
backup=(etc/mtoprc)
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
'mtoprc')
sha256sums=('2e7fc09511d2d0f130da1f52bf85fcfeea0be2cc3aa3d93b88498605c0281d74'
'88709b23b3edfb5ec52a88af76cfad422c1fd0f6d9c773b8c9a2516de2b2ecc5')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL --prefix=/usr
make
}
check() (
cd "${srcdir}/${pkgname}-${pkgver}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
)
package() {
cd ${srcdir}/${pkgname}-${pkgver}
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS="vendor" DESTDIR="${pkgdir}"
install -D -m0755 "${srcdir}/mtoprc" "${pkgdir}/etc/mtoprc"
}
|