diff options
author | Mathias Walters | 2019-04-24 02:12:03 -0400 |
---|---|---|
committer | Mathias Walters | 2019-04-24 02:12:03 -0400 |
commit | d45466496babae1127e1d445421394da507d64dc (patch) | |
tree | fda18a7912c0ea5fea85c9e3a1922c3a2739b5ff | |
download | aur-d45466496babae1127e1d445421394da507d64dc.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6076747b4480 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = tokentool + pkgdesc = A Token creation tool to create png images suitable for Virtual Table Tops. + pkgver = 2.1 + pkgrel = 1 + url = https://rptools.net/toolbox/token-tool + arch = x86_64 + license = AGPL3 + makedepends = git + makedepends = gradle + makedepends = jdk10 + provides = tokentool + conflicts = tokentool + source = git+https://github.com/RPTools/tokentool.git#tag=2.1 + sha256sums = SKIP + +pkgname = tokentool + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4345ce716498 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Mathias Walters <waltersm@protonmail.com> + +pkgname=tokentool +_pkgname=TokenTool +pkgver=2.1 +pkgrel=1 +pkgdesc="A Token creation tool to create png images suitable for Virtual Table Tops." +arch=('x86_64') +url="https://rptools.net/toolbox/token-tool" +license=('AGPL3') +makedepends=('git' 'gradle' 'jdk10') +provides=('tokentool') +conflicts=('tokentool') +source=("git+https://github.com/RPTools/tokentool.git#tag=${pkgver}") +sha256sums=('SKIP') + +build() { + + ORIG_JAVA="$(archlinux-java get)" + sudo archlinux-java set java-10-jdk + + cd ${pkgname} + gradle deploy + + if [ -n "$ORIG_JAVA" ]; then + sudo archlinux-java set $ORIG_JAVA + else + sudo archlinux-java unset + fi +} + +package() { + + cd "${srcdir}/${pkgname}/releases/release-${pkgver}" + ar vx "${pkgname}-${pkgver}.deb" + tar -C "${pkgdir}" -xf data.tar.xz + + install -Dm644 "${pkgidr}/opt/${_pkgname}/app/COPYING.AFFERO" -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 "${pkgidr}/opt/${_pkgname}/app/COPYING.LESSER" -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 "${pkgdir}/opt/${_pkgname}/${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications/" +} |