summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2af8e478a4a0c2910a3de4a4e88a3d56b64e3b7a (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=checkersland
pkgver=20211112
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=('2c4b5d9519e5ec4910c40b08a58376ba'
         '2c37881e0f34ed66bb4bf862116787c6'
         '904461219a50a4fe6631dfe55731c2d9')

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

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"
}