summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f7ba2d5ecd8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = hyrule-conquest
+ pkgdesc = Hyrule Conquest. Mod for 0ad created by Undying Nephalim.
+ pkgver = 0.7
+ pkgrel = 1
+ url = https://www.moddb.com/mods/hyrule-conquest
+ arch = x86_64
+ license = unknown
+ makedepends = xz
+ makedepends = curl
+ depends = 0ad
+ noextract = hyrule.tar.xz?dl=0
+ options = !strip
+ source = https://www.dropbox.com/s/c3pzx72sarj0hog/hyrule.tar.xz?dl=0
+ md5sums = 23c5e3402ff13433409a1d149b54b83c
+
+pkgname = hyrule-conquest
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3999c001e38
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Ryan Jeffrey <ryan@ryanmj.xyz>
+# aka Mallock
+pkgname=hyrule-conquest
+pkgver=0.7
+pkgrel=1
+pkgdesc="Hyrule Conquest. Mod for 0ad created by Undying Nephalim."
+arch=(x86_64)
+url="https://www.moddb.com/mods/hyrule-conquest"
+license=('unknown')
+depends=('0ad')
+makedepends=('xz' 'curl')
+source=('https://www.dropbox.com/s/c3pzx72sarj0hog/hyrule.tar.xz?dl=0')
+md5sums=('23c5e3402ff13433409a1d149b54b83c')
+noextract=('hyrule.tar.xz?dl=0')
+
+options=(!strip)
+
+build() {
+ mv 'hyrule.tar.xz?dl=0' hyrule.tar.xz
+ tar -xvf hyrule.tar.xz
+}
+
+package() {
+ install -d -m755 $pkgdir/usr/share/0ad/data/mods
+ cp -r Hyrule $pkgdir/usr/share/0ad/data/mods/$pkgname
+ find $pkgdir/usr/share/0ad/data/mods/$pkgname -type d -exec chmod 755 "{}" \;
+ find $pkgdir/usr/share/0ad/data/mods/$pkgname -type f -exec chmod 644 "{}" \;
+}