1 # Maintainer: Wido <widomaker2k7 at gmail dot com>
7 pkgdesc="a 2D side-scrolling platformer with physics-based gameplay. (requires copy of the full game)"
8 url="http://www.gameolith.com/game/beep/"
9 license=('custom: "commercial"')
10 arch=('i686' 'x86_64')
13 install=(${_pkgname}.install)
14 source=("beep.sh" "beep.desktop")
15 md5sums=('c9667467d8fcb493cf9cfa0f94b9f99d'
16 'e2be3a0703613f203a358687c0c7ca05')
18 _gamepkg="${_pkgname}_${pkgver}_i386.tar.gz"
20 _depends64=('lib32-mesa')
22 if [[ $CARCH == x86_64 ]]; then
23 depends=(${_depends64[@]})
28 msg "You need a full copy of this game in order to install it"
29 msg "Searching for ${_gamepkg} in dir: \"$startdir\""
31 if [[ ! -f "$startdir/${_gamepkg}" ]]; then
32 error "Game package not found, please type absolute path to ${_gamepkg} (/home/joe):"
34 if [[ ! -f "${pkgpath}/${_gamepkg}" ]]; then
35 error "Unable to find game package." && return 1
38 msg "Found game package, installing..."
40 ln -fs ${pkgpath}/${_gamepkg} . || return 1
41 tar xvf ${pkgpath}/${_gamepkg} || return 1
43 install -d ${pkgdir}/opt/${_pkgname}
44 cp -R ${srcdir}/BEEP/{lib,Art} ${pkgdir}/opt/${_pkgname}/
45 cp ${srcdir}/BEEP/{BEEP.bin32,RUNBEEP.sh} ${pkgdir}/opt/${_pkgname}/
53 install -Dm 755 ${srcdir}/${_pkgname}.sh ${pkgdir}/usr/bin/${_pkgname}-game
56 install -D -m644 ${srcdir}/${_pkgname}.desktop \
57 ${pkgdir}/usr/share/applications/${_pkgname}.desktop
60 install -D -m644 ${srcdir}/BEEP/EULA.rtf ${pkgdir}/usr/share/licenses/beep-game/EULA.rtf
62 # Make save game Directory with user group permissions (config)
63 install -d -m775 -g users ${pkgdir}/opt/${_pkgname}/Art/Save/
64 install -m644 -g users ${srcdir}/BEEP/Art/Settings.xml ${pkgdir}/opt/${_pkgname}/Art/
67 chmod 755 ${pkgdir}/opt/${_pkgname}/BEEP.bin32