summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96c04379405f523e29233c062ff47c30fb1fe069 (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
pkgname=checkersland
pkgver=20190607
pkgrel=1
pkgdesc='–°heckers program for playing with computer or people via the Internet'
arch=(x86_64)
url="http://checkersland.com/"
license=('freeware')
depends=(java-runtime)
makedepends=(gendesk)
source=(http://checkersland.com/download/checkersland.jar
        checkersland
        checkersland.png)
install=checkersland.install
md5sums=('312ef7e667519732dcca5163cf308766'
         '2c37881e0f34ed66bb4bf862116787c6'
         '904461219a50a4fe6631dfe55731c2d9')

prepare() {
  gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --exec "checkersland" --categories "Games"
}

package() {
  install -Dm644 "${srcdir}/checkersland.jar" "${pkgdir}/usr/share/games/checkersland/checkersland.jar"
  install -Dm755 "${srcdir}/checkersland" "${pkgdir}/usr/bin/checkersland"
  install -Dm644 "${srcdir}/checkersland.desktop" "$pkgdir/usr/share/applications/checkersland.desktop"
  install -Dm644 "${srcdir}/checkersland.png" "$pkgdir/usr/share/pixmaps/checkersland.png"
  chgrp -R games "${pkgdir}/usr/share/games/checkersland"
  chmod 775 "${pkgdir}/usr/share/games/checkersland"
}