summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan Coward2020-07-28 11:02:14 -0400
committerAidan Coward2020-07-28 11:02:14 -0400
commita82c412e83365f6e5574a0844b5a02ecc19eb15e (patch)
treea5965b1e50b44dca63fdd2b6b8acf5f91cddeaf6
parentaac0ab12d3489bdd17725579f06735ce3ca4643e (diff)
downloadaur-a82c412e83365f6e5574a0844b5a02ecc19eb15e.tar.gz
added .desktop file and icon + doc in README
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
-rw-r--r--README.txt2
-rwxr-xr-xxmage.desktop9
4 files changed, 24 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0150e1750e9a..dee154fe978d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = xmage
pkgdesc = Java-based program for playing Magic:The Gathering, including client and server
pkgver = 1.4.44V0
- pkgrel = 0
+ pkgrel = 1
url = http://xmage.de
install = xmage.install
arch = any
@@ -10,9 +10,11 @@ pkgbase = xmage
optdepends = wmname: change window manager name for compatibility with certain WMs
source = http://xmage.de/files/xmage_1.4.44V0.zip
source = https://raw.githubusercontent.com/magefree/mage/master/LICENSE.txt
+ source = https://raw.githubusercontent.com/magefree/Launcher/master/src/main/resources/icon-mage.png
source = http://xmage.today/java/jre-8u201-linux-x64.tar.gz
sha256sums = 23c631fc4db1158f406f7dee1bec9f6a624cc7314abac1e7942450becdf56cf0
sha256sums = SKIP
+ sha256sums = SKIP
sha256sums = 12c745fbb8735bf450b8c6ba6f649bebe19915f05742975e443bdc8566170352
pkgname = xmage
diff --git a/PKGBUILD b/PKGBUILD
index dfdeca06bebb..76167b3142e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=xmage
pkgver=1.4.44V0
-pkgrel=0
+pkgrel=1
pkgdesc="Java-based program for playing Magic:The Gathering, including client and server"
@@ -13,9 +13,11 @@ license=('MIT')
source=("http://xmage.de/files/xmage_${pkgver}.zip"
- 'https://raw.githubusercontent.com/magefree/mage/master/LICENSE.txt')
+ 'https://raw.githubusercontent.com/magefree/mage/master/LICENSE.txt'
+ 'https://raw.githubusercontent.com/magefree/Launcher/master/src/main/resources/icon-mage.png')
sha256sums=("23c631fc4db1158f406f7dee1bec9f6a624cc7314abac1e7942450becdf56cf0"
+ "SKIP"
"SKIP")
###########################
@@ -88,5 +90,11 @@ fi
msg2 "installing mage-server systemd unit file to /usr/lib/systemd/system..."
mkdir -p "${pkgdir}"/usr/lib/systemd/system
install -m755 ../mage-server.service "${pkgdir}"/usr/lib/systemd/system
+
+ msg2 "installing icon and .desktop file..."
+ mkdir -p "${pkgdir}"/usr/share/icons
+ install -m755 icon-mage.png "${pkgdir}"/usr/share/icons/
+ mkdir -p "${pkgdir}"/usr/share/applications
+ install -m755 xmage.desktop "${pkgdir}"/usr/share/applications/xmage.desktop
}
diff --git a/README.txt b/README.txt
index 8b91189c8e57..c7451f38b0d8 100644
--- a/README.txt
+++ b/README.txt
@@ -13,3 +13,5 @@ https://www.reddit.com/r/XMage/comments/9k2t9o/new_install_blank_screen_when_lau
The package comes with a systemd unit file to load mage-server on boot. The service restarts if mage-server crashes or closes unexpectedly.
It is automatically installed to /usr/lib/systemd/system/mage-server.service
+
+The xmage.desktop file is installed to /usr/share/applications/xmage.desktop. This makes it visible in application menus. It can be installed to ~/Desktop if a desktop icon is desired.
diff --git a/xmage.desktop b/xmage.desktop
new file mode 100755
index 000000000000..ce3f44357d79
--- /dev/null
+++ b/xmage.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=XMage
+Exec=/usr/bin/mage-client
+Type=Application
+Categories=Game
+StartupNotify=true
+Icon=icon-mage.png
+Terminal=false
+