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="Creates a complete javascript website from a folder of pics"
8 PACKAGER="IgnorantGuru <ignorantguru@users.sourceforge.net>"
10 depends=('imagemagick' 'jhead')
12 url=("http://igurublog.wordpress.com/downloads/script-$pkgname/")
13 source=("http://downloads.sourceforge.net/project/ig-scripts/$pkgname.sh")
14 #md5sums=(`wget -O - http://downloads.sourceforge.net/project/ig-scripts/$pkgname.sh | md5sum | head -c 32`)
15 md5sums=('da99615523a3cb30ade3b03ca40d72c6')
18 _autover=`grep -m 1 "$pkgname version [[:digit:]]" ${startdir}/$pkgname.sh | sed 's/^.* version \([[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\).*/\1/'`
19 if [ "$_autover" != "" ] && [ "$_autover" != "$pkgver" ]; then
20 # link to keep yaourt happy
21 ln -s $pkgname-$_autover-$pkgrel-any.pkg.tar.gz ${startdir}/$pkgname-$pkgver-$pkgrel-any.pkg.tar.gz
22 eval "pkgver=$_autover"
24 cd ${startdir}/pkg || return 1
25 mkdir -p usr/bin || return 1
26 cd usr/bin || return 1
27 cp ${startdir}/$pkgname.sh ./$pkgname