summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvenom2021-01-06 21:16:35 -0800
committervenom2021-01-06 21:16:35 -0800
commit3be63fcfe32a145dbf9e331f8ae21a154c1feb74 (patch)
tree75398368012aab32b652d3ace7f6da592a9bd888
downloadaur-3be63fcfe32a145dbf9e331f8ae21a154c1feb74.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..7f6e0f3978f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = mc-litematica-112-liteloader
+ pkgdesc = A new schematic mod written from scratch.
+ pkgver = 0.0.0.dev.20200615.020552
+ 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-litematica-112-liteloader
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..390d41818e9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: EatMyVenom <eat.my.venomm@gmail.com>
+
+_modname=litematica
+_mcver="1.12.2"
+_modloader="liteloader"
+pkgname=mc-litematica-112-liteloader
+pkgver="0.0.0.dev.20200615.020552"
+pkgrel=1
+pkgdesc="A new schematic mod written from scratch."
+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"
+}