summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcorey drew bruce2020-08-18 22:26:03 +1000
committercorey drew bruce2020-08-18 22:26:03 +1000
commitd2cf16cfbe0500de262ab92a18a9ca7b4dbf132f (patch)
treec5ae2212c5e7ea8be9fb61a9c4ba32002d690d03
downloadaur-d2cf16cfbe0500de262ab92a18a9ca7b4dbf132f.tar.gz
Adding PKGBUILD file to AUR
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5da8d9e8f27
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = rscrevolution
+ pkgdesc = The most developed, longest running, most active and the only FREE OldSchool RuneScape Classic Private Server.
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://gitlab.com/gamerworld/application
+ arch = any
+ license = N/A
+ depends = java-runtime>=11
+ provides = rscrevolution
+ conflicts = rscrevolution
+ source = git+https://gitlab.com/coreybruce/rscrevolution
+ sha256sums = SKIP
+
+pkgname = rscrevolution
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3172bd32b07
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=rscrevolution
+_pkgname=RSCRevolution
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="The most developed, longest running, most active and the only FREE OldSchool RuneScape Classic Private Server."
+arch=('any')
+url="https://gitlab.com/gamerworld/application"
+license=('N/A')
+depends=('java-runtime>=11')
+makedepends=()
+provides=("${pkgname%}")
+conflicts=("${pkgname%}")
+source=('git+https://gitlab.com/coreybruce/rscrevolution')
+sha256sums=('SKIP')
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -dm755 "$pkgdir/opt/$_pkgname"
+ cp -r ./ "$pkgdir/opt/$_pkgname"
+
+ # Link to binary
+ install -dm755 "$pkgdir/usr/bin"
+ ln -s "/opt/$_pkgname/$_pkgname" "$pkgdir/usr/bin/${pkgname%}"
+
+ # Desktop Entry
+ install -Dm644 "$srcdir/$pkgname/$_pkgname.desktop" \
+ "$pkgdir/usr/share/applications/$_pkgname.desktop"
+ sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/$_pkgname.desktop"
+}