Das wollte ich damit sagen. 🙂
Oder folgendes PKGBUILD
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=jose-chess
pkgver=1.44
pkgrel=1
pkgdesc="Graphical chess tool and game"
url="http://jose-chess.sourceforge.net/"
arch=('i686')
license=('GPL')
install=jose.install
depends=('jre' 'mysql' 'libgl')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/jose-144-linux.zip)
md5sums=('c36ec11a2703a2fdc92106b33ac737e5')
noextract=('jose-144-linux.zip')
build() {
install -d $pkgdir/usr/share/ || return 1
cd $pkgdir/usr/share
unzip -qou $srcdir/jose-144-linux.zip || return 1
find $pkgdir/usr/share/jose -type f -exec chmod 664 {} \; || return 1
chmod 755 $pkgdir/usr/share/jose/jose.sh || return 1
find $pkgdir/usr/share/jose -type d -exec chmod 775 {} \; || return 1
}
mitsamt folgendem install-file
# arg 1: the new package version
pre_install() {
groupadd jose
/bin/true
}
# arg 1: the new package version
post_install() {
echo "Create an alias like this: alias jose='/usr/share/jose/jose.sh'"
echo "and put your user into that group ans logout"
chgrp -R jose /usr/share/jose
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
echo "create an alias like this: alias jose='/usr/share/jose/jose.sh'"
echo "and put your user into that group and logout"
chgrp -R jose /usr/share/jose
/bin/true
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
groupdel jose
/bin/true
}
op=$1
shift
[ "$(type -t "$op")" = "function" ] && $op "$@"
Die 3D-Funktionalität ist allerdings fehlerhaft, vielleicht fehlt hier eine Abhängigkeit.