updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / dwatch / PKGBUILD
blob3b3ec389bfbb449a64943235291fa49b2b7c8d3e
1 # Maintainer: andreww <andreww@photism.org>
2 # Contributor: andreww <andreww@photism.org>
4 pkgname=dwatch
5 pkgrel=1
6 pkgver=0.1.1
7 pkgdesc="a program that watches over other programs and performs actions based on conditions specified in a configuration file."
8 depends=('glibc')
9 arch=(i686 x86_64)
10 url="http://siag.nu/dwatch/"
11 license=('gpl')
12 source=(
13         "http://siag.nu/pub/dwatch/$pkgname-$pkgver.tar.gz"
15 install=dwatch.install
16 md5sums=('25c06240cb5ab8126badc8a78dcd2b79')
18 build() {
19         cd $srcdir/$pkgname-$pkgver || exit 1
20         mkdir -p $pkgdir/usr/bin $pkgdir/usr/man/man1 $pkgdir/usr/share/dwatch/ || exit 1
21         make PREFIX=/usr ETCDIR=/etc || exit 1
22         make install PREFIX=$pkgdir/usr ETCDIR=/etc || exit 1
23         mv $pkgdir/usr/man $pkgdir/usr/share/ || exit 1
24         cp $srcdir/$pkgname-$pkgver/dwatch.conf $pkgdir/usr/share/dwatch/example.conf || exit 1