summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamas2019-09-25 19:57:08 +0100
committerCamas2019-09-25 20:02:48 +0100
commitbea2d2cd9cb870d87e228c003442a5d706b9519b (patch)
tree86b87f0419f1aca8ea1737896c78acca7b751aed
downloadaur-bea2d2cd9cb870d87e228c003442a5d706b9519b.tar.gz
Initial commit
Add .SRCINFO
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore11
-rw-r--r--PKGBUILD60
-rw-r--r--atlauncher11
-rw-r--r--atlauncher.desktop10
-rw-r--r--atlauncher.pngbin0 -> 7502 bytes
6 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d2e6d916e18
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = atlauncher-git
+ pkgdesc = A Launcher for Minecraft which integrates multiple different ModPacks to allow you to download and install ModPacks easily and quickly.
+ pkgver = 3.2.3.7.r521.g6d2f1d14
+ pkgrel = 1
+ url = https://atlauncher.com/
+ arch = any
+ license = GPL3
+ makedepends = java-environment=8
+ makedepends = gradle
+ depends = java-runtime=8
+ depends = openal
+ depends = sh
+ provides = atlauncher
+ conflicts = atlauncher
+ source = git+https://github.com/ATLauncher/ATLauncher.git
+ source = atlauncher
+ source = atlauncher.desktop
+ source = atlauncher.png
+ sha256sums = SKIP
+ sha256sums = 67fc4f30bf1f33e478f8ce7795094233cb80af99eb8c01bf10eb5e45c3988160
+ sha256sums = eb9246f20098844f2f4226fbfe0b2d4a4d20c80e4e295b14c23f3857267b12ca
+ sha256sums = 369c7aa4439762878fd9970c75d1312cf0cd97119c8320b732addef4a621482d
+
+pkgname = atlauncher-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b9c8d958562
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+# Ignore everything
+*
+
+# Except
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!atlauncher
+!atlauncher.desktop
+!atlauncher.png
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..344053f5792
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Camas Millar <camas at hotmail dot co dot uk>
+# Contributor: Cobalt Space <cobaltspace at protonmail dot com>
+# Contributor: Alan Jenkins <alan.james.jenkins at gmail dot com>
+# Contributor: Maximilian Berger <snowdragon92 at gmail dot com>
+
+pkgname=atlauncher-git
+pkgver=3.2.3.7.r521.g6d2f1d14
+pkgrel=1
+pkgdesc="A Launcher for Minecraft which integrates multiple different ModPacks to allow you to download and install ModPacks easily and quickly."
+arch=(any)
+url="https://atlauncher.com/"
+license=('GPL3')
+depends=('java-runtime=8' 'openal' 'sh')
+makedepends=('java-environment=8' 'gradle')
+provides=('atlauncher')
+conflicts=('atlauncher')
+
+source=("git+https://github.com/ATLauncher/ATLauncher.git"
+ "atlauncher"
+ "atlauncher.desktop"
+ "atlauncher.png"
+ )
+
+sha256sums=('SKIP'
+ '67fc4f30bf1f33e478f8ce7795094233cb80af99eb8c01bf10eb5e45c3988160'
+ 'eb9246f20098844f2f4226fbfe0b2d4a4d20c80e4e295b14c23f3857267b12ca'
+ '369c7aa4439762878fd9970c75d1312cf0cd97119c8320b732addef4a621482d')
+
+pkgver() {
+ cd "$srcdir/ATLauncher"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/ATLauncher"
+ gradle build
+}
+
+package() {
+ cd "$srcdir"
+
+ # create folder for the main jar executable
+ mkdir -p "$pkgdir/usr/share/java/atlauncher/"
+ chmod -R 755 "$pkgdir/usr/share/java/atlauncher/"
+
+ # create folder for other files
+ mkdir -p "$pkgdir/usr/share/atlauncher/Downloads"
+ chmod 777 "$pkgdir/usr/share/atlauncher/Downloads"
+
+ # install shell wrapper script
+ install -D -m755 "$srcdir/atlauncher" "$pkgdir/usr/bin/atlauncher"
+
+ # install jar
+ install -D -m644 "$srcdir/ATLauncher/dist/ATLauncher-$(grep -oP "version = '\K[0-9\.]+" $srcdir/ATLauncher/build.gradle).jar" "$pkgdir/usr/share/java/atlauncher/ATLauncher.jar"
+
+ # install desktop launcher with icon
+ install -D -m644 "$srcdir/atlauncher.desktop" "$pkgdir/usr/share/applications/atlauncher.desktop"
+ install -D -m644 "$srcdir/atlauncher.png" "$pkgdir/usr/share/pixmaps/atlauncher.png"
+}
+
diff --git a/atlauncher b/atlauncher
new file mode 100644
index 00000000000..2e3c5d1299f
--- /dev/null
+++ b/atlauncher
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# fix for users of special IM modules
+unset XMODIFIERS GTK_IM_MODULE QT_IM_MODULE
+
+mkdir -p ${HOME}/.local/share/atlauncher
+cd ${HOME}/.local/share/atlauncher
+ln -sf /usr/share/atlauncher/Downloads ${HOME}/.local/share/atlauncher/Downloads
+cp /usr/share/java/atlauncher/ATLauncher.jar .
+exec java -jar ATLauncher.jar $@ >/dev/null
+
diff --git a/atlauncher.desktop b/atlauncher.desktop
new file mode 100644
index 00000000000..b1b6b03af67
--- /dev/null
+++ b/atlauncher.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=ATLauncher
+GenericName=ATLauncher
+Comment=A Minecraft mod pack manager and launcher.
+Exec=atlauncher
+Icon=/usr/share/pixmaps/atlauncher.png
+Terminal=false
+Type=Application
+Categories=Game;
+
diff --git a/atlauncher.png b/atlauncher.png
new file mode 100644
index 00000000000..3db4a433220
--- /dev/null
+++ b/atlauncher.png
Binary files differ