# $Id: PKGBUILD 75922 2012-09-05 14:45:58Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: John Gerritse pkgname=atop pkgver=1.27_3 pkgrel=3 pkgdesc="A system and process level monitor." arch=(i686 x86_64 'mips64el') url="http://www.atoptool.nl/" license=('GPL') depends=('ncurses' 'sh' 'zlib') source=(http://www.atoptool.nl/download/atop-${pkgver/_/-}.tar.gz) md5sums=('4a4e896ed6ec6979f80898d37938b8d9') build() { cd $srcdir/$pkgname-${pkgver/_/-} sed -i 's#root ##' atop.cron make } package() { cd $srcdir/$pkgname-${pkgver/_/-} make DESTDIR=$pkgdir INIPATH=/etc/rc.d install rm -f $pkgdir/etc/cron.d/atop install -dm0755 $pkgdir/etc/cron.daily mv $pkgdir/etc/atop/atop.daily $pkgdir/etc/cron.daily/atop sed -i 's|/etc/atop/atop.daily|/etc/cron.daily/atop|g' $pkgdir/etc/rc.d/atop install -Dm0644 atop.service $pkgdir/usr/lib/systemd/system/atop.service }