blob: bc91af3acf6233332d261b1f2f3bc2726141a6db (
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
|
# Maintainer: Alfonso Saaverda "Son Link" <sonlink.dourden@gmail.com>
pkgname=maldita-castilla
pkgver=1.0
pkgrel=5
pkgdesc="Maldita Castilla (Cursed/damn Castile) is an action arcade game like Ghost and Goblins full of myths from Spain and the rest of Europe"
arch=('i686' 'x86_64')
url='http://www.locomalito.com/maldita_castilla.php'
license=('CCPL')
depends=('zlib' 'openssl-1.0' 'openal' 'mesa' 'xorg-fonts-misc')
if [ "$CARCH" = "x86_64" ]; then
depends+=('lib32-zlib' 'lib32-openssl-1.0' 'lib32-openal' 'lib32-mesa')
fi
source=('http://www.locomalito.com/juegos/Maldita_Castilla_linux.tgz' ${pkgname}.desktop)
md5sums=('e1790a1d1e5dddb222f9c89cff774bb2'
'19f341eef103764cbe3a4d03a7e6a225')
package() {
cd "${srcdir}/MalditaCastilla"
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}/
mkdir -p ${pkgdir}/usr/share/icons
mkdir -p ${pkgdir}/usr/share/applications/
install -m 644 "${srcdir}/${pkgname}.desktop" ${pkgdir}/usr/share/applications
}
|