blob: 1ff7219d453955b9967aefe033c798c1907d3932 (
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
|
# Maintainer: Snehit Sah <snehitsah@protonmail.com>
# Contributor: Mathias Walters <waltersm@protonmail.com>
pkgname=maptool-bin
_pkgname=maptool
pkgver=1.15.1
pkgrel=1
pkgdesc="An open source virtual tabletop program"
arch=('x86_64')
url="https://rptools.net/tools/maptool"
license=('AGPL3')
optdepends=('gvfs: access virtual filesystem')
provides=('maptool')
conflicts=('maptool')
source=("https://github.com/RPTools/maptool/releases/download/${pkgver}/maptool_${pkgver}-amd64.deb")
sha256sums=('30137a32fc2a3b55231a80cc279a69a34fc9f392555cdda3979236243a1e5c4a')
package() {
# extract .deb contents into directory structure
tar -C ${pkgdir} -xf data.tar.zst
# put things in expected places
install -d ${pkgdir}/usr/bin
install -d ${pkgdir}/etc
install -Dm644 ${pkgdir}/opt/${_pkgname}/lib/${_pkgname}-MapTool.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop
ln -s /opt/${_pkgname}/bin/MapTool ${pkgdir}/usr/bin/MapTool
ln -s /opt/${_pkgname}/lib/app/MapTool.cfg ${pkgdir}/etc/MapTool.cfg
}
|