blob: 1d9316f5e68406faf0f586b30f61cf4b0d3e819f (
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
|
# Maintainer: Jozef Riha <jose1711 at gmail dot com>
pkgname=retrotetris
pkgver=1.0
pkgrel=3
pkgdesc="a simple tetris remake"
arch=('i686' 'x86_64')
license=('GPL2')
url="https://sourceforge.net/projects/retropong/"
source=("https://downloads.sourceforge.net/project/retropong/${pkgname}.tar.gz" "${pkgname}.desktop")
depends=('sdl_mixer' 'sdl_ttf' 'bash')
md5sums=('1d85ef7972a731d9ccc0eee650682eb5'
'fd30cf926d46327995848620398873fe')
build() {
cd $srcdir/$pkgname
gcc -o ${pkgname} -lSDL -lSDL_mixer -lSDL_ttf ${pkgname}.c
}
package() {
cd $srcdir/$pkgname
install -D -m755 ./${pkgname} $pkgdir/usr/share/${pkgname}/${pkgname}
install -D -m644 ./retrofont.ttf $pkgdir/usr/share/${pkgname}/retrofont.ttf
install -D -m644 ./*wav $pkgdir/usr/share/${pkgname}/
echo -e "#"'!'"/bin/bash\ncd /usr/share/${pkgname}/\n./${pkgname}" >./${pkgname}.sh
install -D -m755 ./${pkgname}.sh $pkgdir/usr/bin/${pkgname}
install -D -m644 $srcdir/${pkgname}.desktop $pkgdir/usr/share/applications/${pkgname}.desktop
}
|