desktop/opengoo/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 93cdde1d10 box2d 2.3.0
opengoo 20140729
2014-07-29 17:53:59 +00:00

45 lines
1.2 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=opengoo
_pkgname=OpenGOO
_developer=Mandarancio
pkgver=20140729
pkgrel=1
pkgdesc="Clone of World of GOO™"
arch=('i686' 'x86_64')
url="http://qt-apps.org/content/show.php/OpenGOO?content=147716"
screenshot="http://qt-apps.org/CONTENT/content-pre1/147716-1.png"
license=('GPL3')
depends=('box2d' 'qt5-base')
categories=('games')
source=($pkgname-$pkgver.tar.gz::https://github.com/$_developer/$_pkgname/tarball/master)
md5sums=('6a3474ebac5085174d3f4e16cc5d0c22')
build() {
cd $srcdir/$_developer-$_pkgname*
qmake-qt5
make
}
package() {
cd $srcdir/$_developer-$_pkgname*
# make DESTDIR="$pkgdir" install
# Game.
install -Dm755 $_pkgname $pkgdir/usr/share/$pkgname/$_pkgname
for item in Artworks properties res resources
do
cp -R $item $pkgdir/usr/share/$pkgname/$item
done
# Execution script.
mkdir -p $pkgdir/usr/bin
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
echo "cd /usr/share/$pkgname" >> $pkgdir/usr/bin/$pkgname
echo "./$_pkgname" >> $pkgdir/usr/bin/$pkgname
chmod +x $pkgdir/usr/bin/$pkgname
}