# Maintainer: gadget3000 # Contributor: mikers pkgname=vvvvvv _pkgname=VVVVVV pkgver=2.0 build=3 pkgrel=4 pkgdesc="A retro styled 2D platformer" arch=('i686' 'x86_64') url="http://thelettervsixtim.es/" license=('commercial') depends=('libjpeg6' 'libtiff4' 'slang' 'libcaca' 'aalib') source=("${pkgname}.desktop") _gamepkg="${_pkgname}_${pkgver}_Linux${build}.tar.gz" sha256sums=('a5eea031606f206b14f752eee7079fb18b6462fd751087d4641ca1831beb867f') build() { cd ${srcdir} msg "You need a full copy of this game in order to install it" msg "Searching for \"${_gamepkg}\"\ in dir: $(readlink -f ${startdir})" pkgpath=${startdir} if [[ ! ( -f "${startdir}/${_gamepkg}" ) ]]; then error "Game package not found, please type absolute path to game setup package (/home/joe):" read pkgpath if [[ ! ( -f "${pkgpath}/${_gamepkg}" ) ]] ; then error "Unable to find game package." && return 1 fi fi msg "Found game package, installing..." ln -fs "${pkgpath}/${_gamepkg}" . install -d ${pkgdir}/opt/ tar xzf ${_gamepkg} -C ${pkgdir}/opt/ install -d ${pkgdir}/usr/bin ln -s /opt/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${pkgname} # Install the icon file install -D -m 644 ${pkgdir}/opt/${_pkgname}/data/icons/32_2.png \ ${pkgdir}/usr/share/pixmaps/vvvvvv_icon.png # Install desktop file install -D -m 644 ${srcdir}/${pkgname}.desktop \ ${pkgdir}/usr/share/applications/${pkgname}.desktop }