summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a24f0d8464de661cf6d9c7930a0fae3564690aa (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
# Maintainer: Alfonso Saaverda "Son Link" <sonlink.dourden@gmail.com>

pkgname=efmb
pkgver=1.0
pkgrel=3
pkgdesc="Endless Forms Most Beautiful is a crazy platformer with braincrashing mechanics"
arch=('i686' 'x86_64')
url='http://www.locomalito.com/efmb.php'
license=('CCPL')
depends=('zlib' 'openssl-1.0' 'openal' 'mesa')
if [ "$CARCH" = "x86_64" ]; then
	depends+=('lib32-zlib' 'lib32-openssl-1.0' 'lib32-openal' 'lib32-mesa')
fi
arch=('x86_64' 'i686')
source=('http://www.locomalito.com/juegos/EFMB_linux.zip'
	'efmb.png' 'efmb.desktop')
md5sums=('a286f67fab9d7ce041e5ce19fb71c40f'
         '70f0c70dc0d0263dbafcd747a9301ec5'
         '99dce59d073c2496e6ae5604fef74ef4')

package() {
	cd "${srcdir}/EFMB"
	mkdir -p ${pkgdir}/usr/bin
	echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
	echo "cd /opt/$pkgname/ && ./runner" >> $pkgdir/usr/bin/$pkgname
	chmod 755 $pkgdir/usr/bin/$pkgname
	mkdir -p ${pkgdir}/opt/${pkgname}
	cp * -r ${pkgdir}/opt/${pkgname}
	chmod -R 655  ${pkgdir}/opt/${pkgname}/runner
	mkdir -p ${pkgdir}/usr/share/icons
	mkdir -p ${pkgdir}/usr/share/applications/
	install -m 644 "${srcdir}/efmb.png"  ${pkgdir}/usr/share/icons
	install -m 644 "${srcdir}/efmb.desktop"  ${pkgdir}/usr/share/applications
}