summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e06aecb48bb198cff2e4ac1ed791bbc84b4c72d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Wido <widomaker2k7 [at] gmail [dot] com>
# Maintainer: andy123 < ajs [at] online [dot] de >

pkgname=nottetris2
pkgver=2
pkgrel=1
pkgdesc="Basically it's a little like tetris except with a twist."
arch=('any')
url="http://stabyourself.net/nottetris2/"
license=('CCPL:by-nc-sa')
depends=('love07')
_gamepkg="${pkgname}-linux.zip"
source=(${pkgname}.sh
	${pkgname}.desktop
	http://stabyourself.net/dl.php?file=nottetris2/${_gamepkg})
sha1sums=('c967b132cf0f5647bd4cf6f744edabacff7846e7'
          'd745399c1d55c35e83b103126fcf291e46e0b160'
          '604801636a94147dccfdbe73489a68cbd68a88ac')

build() {
	mkdir -p temp
	cd temp
	bsdtar -xvf "${srcdir}/Not Tetris 2.love"
	sed -i 's/math.mod/math.fmod/g' *.lua
	bsdtar -cv --format zip -f ../temp.zip *
	cd ..
	mv -v temp.zip "${srcdir}/Not Tetris 2.love"
}

package() {
	# Install Data
	install -D -m755 "${srcdir}/Not Tetris 2.love" "${pkgdir}/usr/share/games/${pkgname}/${pkgname}.love"
	install -D -m644 "${srcdir}/Not Readme.txt" "$pkgdir/usr/share/games/${pkgname}/readme"

	# Install Launcher
	install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"

	# Install Desktop
	install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}