1 # Maintainer: IgnorantGuru <ignorantguru@users.sourceforge.net>
2 # This PKGBUILD will download and build the latest version
4 # pkgver will be changed dynamically in build() to latest version
7 pkgdesc="Wrapper for mplayer which adds resumable playback, disables screensavers, restores volume levels, uses multiple displays"
8 PACKAGER="IgnorantGuru <ignorantguru@users.sourceforge.net>"
10 depends=('mplayer' 'zenity')
11 optdepends=('xdialog' 'kdebase-kdialog' 'alsa-lib')
13 url=("http://igurublog.wordpress.com/downloads/script-$pkgname/")
14 source=("http://downloads.sourceforge.net/project/ig-scripts/$pkgname.sh")
15 #md5sums=(`wget -O - http://downloads.sourceforge.net/project/ig-scripts/$pkgname.sh | md5sum | head -c 32`)
16 md5sums=('0aaef586b5757b647469c71c6f1f9f8e')
19 _autover=`grep -m 1 "$pkgname version [[:digit:]]" ${startdir}/$pkgname.sh | sed 's/^.* version \([[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\).*/\1/'`
20 if [ "$_autover" != "" ] && [ "$_autover" != "$pkgver" ]; then
21 # link to keep yaourt happy
22 ln -s $pkgname-$_autover-$pkgrel-any.pkg.tar.gz ${startdir}/$pkgname-$pkgver-$pkgrel-any.pkg.tar.gz
23 eval "pkgver=$_autover"
25 cd ${startdir}/pkg || return 1
26 mkdir -p usr/bin || return 1
27 cd usr/bin || return 1
28 cp ${startdir}/$pkgname.sh ./$pkgname