summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGenesis2019-02-19 11:52:08 +0100
committerGenesis2019-02-19 11:52:08 +0100
commit04bf99fc441acd051b6cc821545cdff530eb352f (patch)
treebbfd795a234fe27949ce84afe6108e9c12c3c377
downloadaur-04bf99fc441acd051b6cc821545cdff530eb352f.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD44
-rw-r--r--ankama-launcher.desktop.patch15
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0116704bdbc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = ankama-launcher
+ pkgdesc = A multi-game portal for all Ankama games.
+ pkgver = 2.8.20
+ pkgrel = 1
+ url = https://www.ankama.com/en/launcher
+ arch = i686
+ arch = x86_64
+ license = custom:Ankama License
+ depends = zlib
+ optdepends = wine: to play Dofus
+ optdepends = java-environment: to play Wakfu
+ options = !strip
+ source = ankama-launcher.desktop.patch
+ md5sums = f4a3bd087a326c9d31f6c945e7ddbe0b
+ source_i686 = https://ankama.akamaized.net/zaap/installers/production/Ankama%20Launcher-Setup-i386.AppImage
+ md5sums_i686 = 43582538704d96540145186ea8626e1b
+ source_x86_64 = https://ankama.akamaized.net/zaap/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage
+ md5sums_x86_64 = b2ade152abfe7b44bab18bc0a493133b
+
+pkgname = ankama-launcher
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..684ddac44a9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Genesis <tofupedia.fr@gmail.com>
+
+# To disable the popup asking for system integration at each startup :
+# `touch $HOME/.local/share/appimagekit/no_desktopintegration`
+
+pkgname=ankama-launcher
+pkgver=2.8.20
+pkgrel=1
+pkgdesc='A multi-game portal for all Ankama games.'
+url='https://www.ankama.com/en/launcher'
+
+arch=('i686' 'x86_64')
+license=('custom:Ankama License')
+depends=('zlib')
+optdepends=('wine: to play Dofus'
+ 'java-environment: to play Wakfu')
+options=('!strip')
+source=('ankama-launcher.desktop.patch')
+source_i686=('https://ankama.akamaized.net/zaap/installers/production/Ankama%20Launcher-Setup-i386.AppImage')
+source_x86_64=('https://ankama.akamaized.net/zaap/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage')
+md5sums=('f4a3bd087a326c9d31f6c945e7ddbe0b')
+md5sums_i686=('43582538704d96540145186ea8626e1b')
+md5sums_x86_64=('b2ade152abfe7b44bab18bc0a493133b')
+
+[[ "$CARCH" == "i686" ]] && LARCH='i386'
+[[ "$CARCH" == "x86_64" ]] && LARCH='x86_64'
+
+prepare() {
+ cd "${srcdir}"
+ mv "Ankama%20Launcher-Setup-${LARCH}.AppImage" "ankama-launcher.AppImage"
+ 7z e "${srcdir}/ankama-launcher.AppImage" "zaap.desktop"
+ 7z e "${srcdir}/ankama-launcher.AppImage" "usr/share/icons/hicolor/128x128/apps/zaap.png"
+
+ mv "zaap.desktop" "ankama-launcher.desktop"
+ mv "zaap.png" "ankama-launcher.png"
+
+ patch -Np0 <../ankama-launcher.desktop.patch
+}
+
+package() {
+ install -Dm755 "ankama-launcher.AppImage" "${pkgdir}/opt/appimages/ankama-launcher.AppImage"
+ install -Dm644 "ankama-launcher.desktop" "${pkgdir}/usr/share/applications/ankama-launcher.desktop"
+ install -Dm644 "ankama-launcher.png" "${pkgdir}/usr/share/pixmaps/ankama-launcher.png"
+}
diff --git a/ankama-launcher.desktop.patch b/ankama-launcher.desktop.patch
new file mode 100644
index 00000000000..be979a91967
--- /dev/null
+++ b/ankama-launcher.desktop.patch
@@ -0,0 +1,15 @@
+--- ankama-launcher.desktop 2019-02-19 09:17:19.000000000 +0100
++++ ankama-launcher.desktop 2019-02-19 11:26:53.684331614 +0100
+@@ -1,10 +1,10 @@
+ [Desktop Entry]
+ Name=Ankama Launcher
+ Comment=Ankama portal and game launcher
+-Exec=AppRun
++Exec=/opt/appimages/ankama-launcher.AppImage
+ Terminal=false
+ Type=Application
+-Icon=zaap
++Icon=ankama-launcher
+ StartupWMClass=Ankama Launcher
+ X-AppImage-Version=2.8.20
+ Categories=Game;