desktop/opengoo/PKGBUILD
2017-01-25 22:16:54 +01:00

51 lines
1.7 KiB
Bash

pkgname=opengoo
_pkgname=OpenGOO
pkgver=20160917
pkgrel=1
pkgdesc="Clone of World of GOO™"
arch=('x86_64')
url="https://github.com/Mandarancio/OpenGOO"
screenshot="http://qt-apps.org/CONTENT/content-pre1/147716-1.png"
license=('GPL3')
depends=('qt5-base')
categories=('games')
source=("git+https://github.com/Mandarancio/$_pkgname.git#commit=d9629059288e810854bd30a0a7431e24a359b6c0")
sha1sums=('SKIP')
build() {
cd $srcdir/$_pkgname
qmake-qt5
make
}
package() {
cd $srcdir/$_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.
install -d $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
# .desktop file and image
install -d $pkgdir/usr/share/{applications,pixmaps}
install -D $pkgdir/usr/share/$pkgname/Artworks/black-goo.riscaled.png \
$pkgdir/usr/share/pixmaps/opengoo.png
echo "[Desktop Entry]" > $pkgdir/usr/share/applications/$pkgname.desktop
echo "Encoding=UTF-8" >> $pkgdir/usr/share/applications/$pkgname.desktop
echo "Name=OpenGOO" >> $pkgdir/usr/share/applications/$pkgname.desktop
echo "Exec=opengoo" >> $pkgdir/usr/share/applications/$pkgname.desktop
echo "Icon=opengoo" >> $pkgdir/usr/share/applications/$pkgname.desktop
echo "Type=Application" >> $pkgdir/usr/share/applications/$pkgname.desktop
echo "Categories=Game;" >> $pkgdir/usr/share/applications/$pkgname.desktop
}