diff options
-rw-r--r-- | .AURINFO | 17 | ||||
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | ankama-transition.install | 14 | ||||
-rw-r--r-- | transition.sh | 5 |
5 files changed, 93 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO new file mode 100644 index 000000000000..3e0c3b27baa9 --- /dev/null +++ b/.AURINFO @@ -0,0 +1,17 @@ +pkgbase = ankama-transition + pkgdesc = Updater for Ankama games Dofus and Wakfu + pkgver = 3.11.1 + pkgrel = 1 + url = http://www.ankama.com + install = ankama-transition.install + arch = i686 + arch = x86_64 + license = custom + depends = qt4 + depends = polkit + depends = openssl + source = http://dl.ak.ankama.com/games/linux/ankama-transition-release.tar.gz + source = transition.sh + +pkgname = ankama-transition + diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d42dc17bd9a0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ankama-transition + pkgdesc = Updater for Ankama games Dofus and Wakfu + pkgver = 3.11.1 + pkgrel = 1 + url = http://www.ankama.com + install = ankama-transition.install + arch = i686 + arch = x86_64 + license = custom + depends = qt4 + depends = polkit + depends = openssl + source = http://dl.ak.ankama.com/games/linux/ankama-transition-release.tar.gz + source = transition.sh + md5sums = bac15a49942ac46c8270e8f5b94c3d1c + md5sums = 2be6feebbe106c854ca79d623a030d70 + +pkgname = ankama-transition + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0426eb83fb08 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Yaohan Chen <yaohan.chen@gmail.com> +pkgname=ankama-transition +pkgver=3.11.1 +pkgrel=1 +pkgdesc="Updater for Ankama games Dofus and Wakfu" +arch=('i686' 'x86_64') +url="http://www.ankama.com" +license=('custom') +depends=('qt4' 'polkit' 'openssl') +source=('http://dl.ak.ankama.com/games/linux/ankama-transition-release.tar.gz' + 'transition.sh') +md5sums=('bac15a49942ac46c8270e8f5b94c3d1c' + '2be6feebbe106c854ca79d623a030d70') +install='ankama-transition.install' + +prepare() { + ln -sf "$srcdir/i386" i686 + ln -sf "$srcdir/amd64" x86_64 + sed -i 's:$$${installation_path}:/opt/ankama:' \ + "$srcdir/usr/share/polkit-1/actions/com.ankama.transitionupdateservice.policy" + # we only use usr/share/pixmaps/transition.png + rm -rf "$srcdir/usr/share/icons/" +} + +package() { + cd "$srcdir/" + cp -r 'etc' 'usr' 'opt' "$pkgdir/" + cp -r "$CARCH/opt"/* "$pkgdir/opt" + + _installdir="$pkgdir/opt/ankama/transition" + chgrp -R games "$_installdir" + chmod -R g+w "$_installdir" + + install -Dm755 'transition.sh' "$pkgdir/usr/bin/transition" + install -Dm644 'opt/ankama/transition/licences/README.txt' \ + "$pkgdir/usr/share/licenses/ankama-transition/licenses.txt" +} + diff --git a/ankama-transition.install b/ankama-transition.install new file mode 100644 index 000000000000..a9398c5c5272 --- /dev/null +++ b/ankama-transition.install @@ -0,0 +1,14 @@ +post_install() { + chgrp -R games /opt/ankama/transition + chmod -R g+w /opt/ankama/transition + cat <<END +The updater files are installed under group "games". Please add your user +to this group with "usermod -a -G games", otherwise you will need to +enter your password when the game auto-updates. +END +} + +post_upgrade() { + post_install +} + diff --git a/transition.sh b/transition.sh new file mode 100644 index 000000000000..b5280dae900e --- /dev/null +++ b/transition.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# Having this variable set can make transition segfault +unset SESSION_MANAGER + +/opt/ankama/transition/transition "$@" |