summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb762916c9c694f5111bccfdcfb7cd3528772adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Stephen Bell <theredbaron1834 @ yahoo.com>
pkgname=playbox
pkgrel=1
pkgver=1.6.3
pkgdesc="A growing collection of board games."
arch=('x86_64')
url="http://sourceforge.net/projects/playbox/"
license=('Eclipse Public License')
depends=('gtk3')
makedepends=('unzip')

build() {

  msg "Grabbing files...."
  curl https://excellmedia.dl.sourceforge.net/project/playbox/6/playbox-1.6.3.linux.gtk.x86_64.zip -L -o playbox.zip
  unzip playbox.zip

}

package() {
  cd "$pkgdir"
  install -m777 -d "$pkgdir/opt/playbox"
  cp -r "$srcdir/playbox" "$pkgdir/opt/"
  mkdir -p "$pkgdir/usr/share/applications/"
  mkdir -p "$pkgdir/usr/bin/"
  echo "[Desktop Entry]
Name=Playbox
GenericName=Playbox
Comment=A growing collection of board games.
Exec=playbox
Icon=/opt/playbox/icon.xpm
Terminal=false
Type=Application
Categories=Game;" > "$pkgdir/usr/share/applications/playbox.desktop"
  echo "cd /opt/playbox/
./playbox -configuration ~/.config/playbox/ " > "$pkgdir/usr/bin/playbox"
  chmod +x "$pkgdir/usr/bin/playbox"
}