1 # Contributor: Roberto Alsina <ralsina@kde.org>
5 pkgdesc="Watches free memory and manages swap files"
6 url="http://www.rkeene.org/oss/swapd/"
15 source=(http://www.rkeene.org/files/oss/swapd/source/$pkgname-$pkgver.tar.gz
16 swapd.init swapd.runit)
17 md5sums=('cb9ec64a5abd4535b95ec59311114ade' '5c0c337e2b8c88aac9cc37a8f8e9fe91'\
18 '073a5ee85f77dd91a380bacdeff04e60')
21 cd $startdir/src/$pkgname-$pkgver
22 ./configure --prefix=/
24 install -d $startdir/pkg/usr/man/{man5,man8}
25 install -d $startdir/pkg/etc/rc.d
26 install -d $startdir/pkg/usr/sbin
28 install -m 0755 swapd $startdir/pkg/usr/sbin
29 install -m 0644 swapd.8 $startdir/pkg/usr/man/man8
30 install -m 0644 swapd.conf.5 $startdir/pkg/usr/man/man5
32 install -m 0644 swapd.conf $startdir/pkg/etc
33 install -m 0755 ../swapd.init $startdir/pkg/etc/rc.d/swapd
35 install -d $startdir/pkg/etc/sv/swapd
36 install -m 0755 ../swapd.runit $startdir/pkg/etc/sv/swapd/run