1 # Contributor: Wido <widomaker2k7 [at] gmail [dot] com>
2 # Maintainer: andy123 < ajs [at] online [dot] de >
7 pkgdesc="Basically it's a little like tetris except with a twist."
9 url="http://stabyourself.net/nottetris2/"
13 _gamepkg="${pkgname}-linux.zip"
14 source=(${pkgname}.sh ${pkgname}.desktop ${_gamepkg}.sha1)
15 sha1sums=('ce355842a0d404af46ed75132618ba3eec996369'
16 'd745399c1d55c35e83b103126fcf291e46e0b160'
17 '797924ae8e044ae5346e133dc6cd3f7eba6618ab')
21 wget -qq -O/dev/null http://stabyourself.net/nottetris2/ --keep-session-cookies --save-cookies temp.cookie
22 wget --header="Host: stabyourself.net" \
23 --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0.1) Gecko/20100101 Firefox/8.0.1" \
24 --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
25 --header="Accept-Language: en-us,en;q=0.5" \
26 --header="Accept-Encoding: gzip, deflate" \
27 --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" \
28 --header="Referer: http://stabyourself.net/nottetris2/" \
29 --load-cookies temp.cookie \
30 --header="DNT: 1" --header="Connection: keep-alive" \
31 "http://stabyourself.net/dl.php?file=nottetris2/${_gamepkg}" -cO"${_gamepkg}"
32 sha1sum -c ${_gamepkg}.sha1 || return 1
33 unzip -o ${srcdir}/${_gamepkg} -d $srcdir/${pkgname}
36 install -D -m755 "${srcdir}/${pkgname}/Not Tetris 2.love" "${pkgdir}/usr/share/games/${pkgname}/${pkgname}.love"
37 install -D -m644 "${srcdir}/${pkgname}/Not Readme.txt" "$pkgdir/usr/share/games/${pkgname}/readme"
40 install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
43 install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"