summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNyCode2021-09-02 20:56:16 +0200
committerNyCode2021-09-02 20:56:41 +0200
commit205e663b03505797a30281fdd59fc93f90e85bca (patch)
tree4c5380c9b63863ce4829f56b49274ccc3459863c
downloadaur-205e663b03505797a30281fdd59fc93f90e85bca.tar.gz
Initial commit
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD25
3 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1b768759b51
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = mcserv
+ pkgdesc = CLI utility to manage MC server installations.
+ pkgver = 0.0.1
+ pkgrel = 1
+ url = https://github.com/DRSchlaubi/mcserv
+ arch = x86_64
+ license = GPL3
+ options = !strip
+ source = https://github.com/DRSchlaubi/mcserv/releases/download/v0.0.1/mcserv-0.0.1-linux.tar.gz
+ sha256sums = 667345010fecbbe1ffcfd3a2e0617c0f8da6701d34ab3079dc25ec5bfa934ae5
+
+pkgname = mcserv
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b28a4fb33cf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg
+/src
+/mcserv
+*.zst
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..211f80f93d8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Nico Ramlow <nico@nycode.de>
+pkgname=mcserv
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="CLI utility to manage MC server installations."
+arch=('x86_64')
+url="https://github.com/DRSchlaubi/mcserv"
+license=('GPL3')
+options=(!strip)
+source=("https://github.com/DRSchlaubi/mcserv/releases/download/v$pkgver/$pkgname-$pkgver-linux.tar.gz")
+sha256sums=("667345010fecbbe1ffcfd3a2e0617c0f8da6701d34ab3079dc25ec5bfa934ae5")
+
+pkgver() {
+ newVer=$(curl --silent https://api.github.com/repos/DRSchlaubi/mcserv/releases/latest | jq -r '."tag_name"')
+ printf ${newVer#v}
+}
+
+package() {
+ cd "$srcdir"
+ mkdir -p "${pkgdir}/opt/${pkgname}" "${pkgdir}/usr/bin"
+ rm $pkgname-$pkgver-linux.tar.gz
+ cp $srcdir/* ${pkgdir}/opt/${pkgname}/
+ chmod 755 "${pkgdir}/opt/${pkgname}/mcserv"
+ ln -s "/opt/${pkgname}/mcserv" "${pkgdir}/usr/bin/${pkgname}"
+}