updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / orthorobot / PKGBUILD
blobefafc5cd6682ca56f935dfe92d67abd70721d5dc
1 # Contributor: Sausageandeggs <sausageandeggs at archlinux dot us>
2 pkgname=orthorobot
3 pkgver=1.0
4 pkgrel=1
5 pkgdesc='Perspective based puzzle game, where you flatten the view to move across gaps'
6 arch=('i686' 'x86_64')
7 url="http://stabyourself.net/orthorobot/"
8 license=('GPL')
9 depends=('love')
10 _gamepkg="${pkgname}-linux.zip"
11 source=(${pkgname}.sh ${pkgname}.desktop ${_gamepkg}.sha1)
13 build() {
14     cd ${srcdir}
15     ## Thanks to andy123 for the wget cmds I shamelessly stole cos they have a stupid way of hosting the game
16         wget -qq -O/dev/null http://stabyourself.net/${pkgname}/ --keep-session-cookies --save-cookies temp.cookie
17         wget --header="Host: stabyourself.net" \
18                 --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" \
19                 --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
20                 --header="Accept-Language: en-us,en;q=0.5" \
21                 --header="Accept-Encoding: gzip, deflate" \
22                 --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" \
23                 --header="Referer: http://stabyourself.net/${pkgname}/" \
24                 --load-cookies temp.cookie \
25                 --header="DNT: 1" --header="Connection: keep-alive" \
26                 "http://stabyourself.net/dl.php?file=${pkgname}/${_gamepkg}" -cO"${_gamepkg}"
27         sha1sum -c ${_gamepkg}.sha1 || return 1
28         unzip -o ${srcdir}/${_gamepkg} -d $srcdir/${pkgname}
32 package() {
33   cd "$srcdir"
34   install -Dm 755 ${pkgname}.sh ${pkgdir}/usr/bin/${pkgname}
35   install -Dm 644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}/${pkgname}.desktop
36   install -Dm 644 ${pkgname}/Ortho\ Robot.love ${pkgdir}/usr/share/games/${pkgname}/${pkgname}.love
39 md5sums=('d6808988ac2a7fa94f993e1a326e4b98'
40          '471b75912eb46f26d72253907ec19e47'
41          '5eaf34495b7e0e59dcc6fc6916ef1376')