updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / nottetris2 / PKGBUILD
blobc7963323dacca57986ed2380fcda8364fbec1074
1 # Contributor: Wido <widomaker2k7 [at] gmail [dot] com>
2 # Maintainer: andy123 < ajs [at] online [dot] de >
4 pkgname=nottetris2
5 pkgver=1
6 pkgrel=6
7 pkgdesc="Basically it's a little like tetris except with a twist."
8 arch=('any')
9 url="http://stabyourself.net/nottetris2/"
10 license=('MIT')
11 depends=('love')
12 makedepends=('unzip')
13 _gamepkg="${pkgname}-linux.zip"
14 source=(${pkgname}.sh ${pkgname}.desktop ${_gamepkg}.sha1)
15 sha1sums=('ce355842a0d404af46ed75132618ba3eec996369'
16           'd745399c1d55c35e83b103126fcf291e46e0b160'
17           '797924ae8e044ae5346e133dc6cd3f7eba6618ab')
19 package() {
20         cd $srcdir
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}
35         # Install Data
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"
39         # Install Launcher
40         install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
42         # Install Desktop
43         install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"