| author | Sergej Pupykin
<spupykin@archlinux.org> 2010-05-24 10:42:15 UTC |
| committer | Sergej Pupykin
<spupykin@archlinux.org> 2010-05-24 10:42:15 UTC |
| parent | 5baa3edafdbcc574b6754e5cffa27e39ada487b0 |
| PKGBUILD | +5 | -2 |
| wol.install | +20 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index bbd7ede..0f75fa2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,11 +4,13 @@ pkgname=wol pkgver=0.7.1 -pkgrel=3 +pkgrel=4 arch=('i686' 'x86_64') pkgdesc="wol implements Wake On LAN functionality in a small program. It wakes up hardware that is Magic Packet compliant." license=("GPL") +depends=(sh) url="http://ahh.sourceforge.net/wol/" +install=wol.install source=(http://downloads.sourceforge.net/ahh/wol-$pkgver.tar.gz) md5sums=('c2fa9d7e771134ac8c89d56b8197d4ca') @@ -19,5 +21,6 @@ build() { make prefix=$startdir/pkg/usr install || return 1 mv $pkgdir/usr/man $pkgdir/usr/share/ && \ - rm $pkgdir/usr/info/dir + mv $pkgdir/usr/info $pkgdir/usr/share/ && \ + rm $pkgdir/usr/share/info/dir } diff --git a/wol.install b/wol.install new file mode 100644 index 0000000..500ea57 --- /dev/null +++ b/wol.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(wol.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +}