summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvenom2021-01-06 21:37:47 -0800
committervenom2021-01-06 21:37:47 -0800
commit77eba94728d6e23c6d8d862e3b93a9da5aca671f (patch)
tree7c247be634528bb2306e3000a3f913f791505344
downloadaur-77eba94728d6e23c6d8d862e3b93a9da5aca671f.tar.gz
create package
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD31
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d04381d42fd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = mc-malilib-116-fabric
+ pkgdesc = Library mod containing shared code for masas client-side mods.
+ pkgver = 0.10.0.dev.21.arne.2
+ pkgrel = 1
+ url = https://masa.dy.fi/mcmods/client_mods/
+ arch = any
+ license = LGPL
+ makedepends = wget
+ source = manifest.json::https://masa.dy.fi/api/games/mods/minecraft/latest/client/
+ sha1sums = SKIP
+
+pkgname = mc-malilib-116-fabric
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e8a8931272b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: EatMyVenom <eat.my.venomm@gmail.com>
+
+_modname=tellme
+_mcver="1.12.2"
+_modloader="liteloader"
+pkgname=mc-tellme-112-liteloader
+pkgver="0.6.3"
+pkgrel=1
+pkgdesc="An informational mod for Minecraft. "
+arch=('any')
+url="https://masa.dy.fi/mcmods/client_mods/"
+license=('LGPL')
+makedepends=('wget')
+source=("manifest.json::https://masa.dy.fi/api/games/mods/minecraft/latest/client/")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd $srcdir
+ cat manifest.json | jq ".[\"mods\"][\"${_mcver}\"][\"${_modloader}\"][\"${_modname}\"][\"version\"]" | sed 's/-/./g;s/+/./g'
+}
+
+build() {
+ wget $(cat manifest.json | jq -r ".[\"mods\"][\"${_mcver}\"][\"${_modloader}\"][\"${_modname}\"][\"url\"]")
+}
+
+package() {
+ install -d -m 755 "${pkgdir}/usr/share/minecraft"
+
+ cp $(cat manifest.json | jq -r ".[\"mods\"][\"${_mcver}\"][\"${_modloader}\"][\"${_modname}\"][\"filename\"]") \
+ "${pkgdir}/usr/share/minecraft/${_modname}-${_mcver}.litemod"
+}