PKGBUILD 1.67 KB
Newer Older
1 2
pkgname=opengoo
_pkgname=OpenGOO
gnastyle's avatar
gnastyle committed
3
pkgver=20160917
4 5
pkgrel=1
pkgdesc="Clone of World of GOO™"
gnastyle's avatar
gnastyle committed
6 7
arch=('x86_64')
url="https://github.com/Mandarancio/OpenGOO"
8 9
screenshot="http://qt-apps.org/CONTENT/content-pre1/147716-1.png"
license=('GPL3')
gnastyle's avatar
gnastyle committed
10
depends=('qt5-base')
Giuseppe's avatar
Giuseppe committed
11
categories=('games')
gnastyle's avatar
gnastyle committed
12 13
source=("git+https://github.com/Mandarancio/$_pkgname.git#commit=d9629059288e810854bd30a0a7431e24a359b6c0")
sha1sums=('SKIP')
14 15

build() {
gnastyle's avatar
gnastyle committed
16
  cd $srcdir/$_pkgname
Adrian Chaves Fernandez's avatar
Adrian Chaves Fernandez committed
17
  qmake-qt5
18 19 20 21
  make
}

package() {
gnastyle's avatar
gnastyle committed
22
  cd $srcdir/$_pkgname
Adrian Chaves Fernandez's avatar
Adrian Chaves Fernandez committed
23
#  make DESTDIR="$pkgdir" install
24 25 26

  # Game.
  install -Dm755 $_pkgname      $pkgdir/usr/share/$pkgname/$_pkgname
Adrian Chaves Fernandez's avatar
Adrian Chaves Fernandez committed
27 28 29 30
  for item in Artworks properties res resources
  do
    cp -R $item $pkgdir/usr/share/$pkgname/$item
  done
31 32
  
  # Execution script.
gnastyle's avatar
gnastyle committed
33
  install -d $pkgdir/usr/bin
34 35 36 37
  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
gnastyle's avatar
gnastyle committed
38 39 40 41 42 43 44 45 46 47 48 49
  
  # .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
50
}