# $Id: PKGBUILD 19230 2008-11-17 22:29:14Z thayer $ # Contributor: Eric Johnson # Maintainer: Thayer Williams pkgname=i8kmon pkgver=1.27 pkgrel=1 pkgdesc="Tk-based daemon for i8kutils and Dell Inspiron/Latitude notebooks" url="http://people.debian.org/~dz/i8k/" license=('GPL2') arch=('i686' 'x86_64') depends=('i8kutils' 'tk') backup=(etc/i8kutils/i8kmon.conf) source=(http://ftp.archlinux.org/other/i8kutils/i8kutils_$pkgver.tar.gz i8kmon.daemon) md5sums=('8f3d3cbf7197fc209b0b64bf0a9732e3' 'a9e6594b4f2b31e03875adfbc405b393') build() { cd $srcdir/i8kutils-$pkgver # conform to Arch Linux guidelines sed -i 's|/etc/i8kmon|/etc/i8kutils/i8kmon.conf|g' i8kmon.1 || return 1 sed -i 's|/etc/i8kmon|/etc/i8kutils/i8kmon.conf|g' i8kmon || return 1 # no configure script, and Makefile has /usr hardcoded install -D -m755 i8kmon $pkgdir/usr/bin/i8kmon || return 1 install -D -m644 i8kmon.conf $pkgdir/etc/i8kutils/i8kmon.conf || return 1 install -D -m644 i8kmon.1 $pkgdir/usr/share/man/man1/i8kmon.1 || return 1 # install daemon script. install -D -m755 ../i8kmon.daemon $pkgdir/etc/rc.d/i8kmon || return 1 } # vim: ts=2 sw=2 et ft=sh