diff options
author | Philipp Claßen | 2017-04-01 01:46:26 +0200 |
---|---|---|
committer | Philipp Claßen | 2017-04-01 01:46:26 +0200 |
commit | e5029c9cf8c9dbee56c42488a25d5ad5de93b446 (patch) | |
tree | 17097a9610e4d31dc9575fcef94cadf5b6761638 | |
download | aur-e5029c9cf8c9dbee56c42488a25d5ad5de93b446.tar.gz |
Initial version
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | arena.install | 4 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a065fb2d5869 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Fri Mar 31 23:46:12 UTC 2017 +pkgbase = arena-chess-gui + pkgdesc = A free GUI for chess + pkgver = 1.1 + pkgrel = 1 + url = http://www.playwitharena.com/ + install = arena.install + arch = x86_64 + license = custom + depends = gtk2 + depends = xdg-utils + source = http://www.playwitharena.de/downloads/arenalinux_64bit_1.1.tar.gz + md5sums = dcef17e3fdd0892fa41a80d0a00e02a5 + +pkgname = arena-chess-gui + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4c5a65fc8892 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Philipp Claßen <philipp.classen@posteo.de> +# +# A problem with Arena is that it requires write access to the directory, +# in which it was installed. Currently, I see no way to avoid it. +# +# It will write its settings to ~/.config/Arena_x86_64_linux, which is OK, +# but it will also create files in /opt/arena, where it is installed. +# +pkgname=arena-chess-gui +pkgver=1.1 +pkgrel=1 +pkgdesc="A free GUI for chess" +arch=('x86_64') +url="http://www.playwitharena.com/" +license=('custom') +install='arena.install' + +depends=(gtk2 xdg-utils) +makedepends=() +source=(http://www.playwitharena.de/downloads/arenalinux_64bit_${pkgver}.tar.gz) +md5sums=('dcef17e3fdd0892fa41a80d0a00e02a5') + +package() { + mkdir -p ${pkgdir}/opt/arena + cp -R ${srcdir}/* ${pkgdir}/opt/arena + rm ${pkgdir}/opt/arena/arenalinux_64bit_${pkgver}.tar.gz + chmod -R a+rw ${pkgdir}/opt/arena + + mkdir -p ${pkgdir}/usr/bin + printf "#!/bin/sh\ncd /opt/arena\n./Arena_x86_64_linux \$@" > ${pkgdir}/usr/bin/arena + chmod 755 ${pkgdir}/usr/bin/arena + + mkdir -p ${pkgdir}/usr/share/licenses/${pkgname} + printf "See http://www.playwitharena.com/?Legal_Stuff\n" > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/arena.install b/arena.install new file mode 100644 index 000000000000..2de0ae3b6032 --- /dev/null +++ b/arena.install @@ -0,0 +1,4 @@ +# This is a hack but otherwise Arena fails to create files like "/opt/arena/ecocodes9.op". +post_install() { + chmod a+w /opt/arena +} |