summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaohan Chen2015-06-20 22:59:21 -0400
committerYaohan Chen2015-06-20 22:59:21 -0400
commit40f2d93b0eeeb40dc5255d6063448c8ef062174a (patch)
treebc2bee53b5af5eb451bb0e6f2f3530a31d3f89b0
downloadaur-40f2d93b0eeeb40dc5255d6063448c8ef062174a.tar.gz
Initial import
-rw-r--r--.AURINFO17
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD38
-rw-r--r--ankama-transition.install14
-rw-r--r--transition.sh5
5 files changed, 93 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..3e0c3b27baa
--- /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 00000000000..d42dc17bd9a
--- /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 00000000000..0426eb83fb0
--- /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 00000000000..a9398c5c527
--- /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 00000000000..b5280dae900
--- /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 "$@"