makedeb


square-wad 2.1-0


The Adventures of Square, Episode 1&2 game data

Click here to go back to the commit logs for square-wad.

Commit:


Hash: 67346b02dfa54df6a753129b6b3e6dfcc6fe208e

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index e08f3b1..f26de20 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,19 @@
-pkgbase = square1-wad
-	pkgdesc = The Adventures of Square, Episode 1 game data
-	pkgver = 2.0
-	pkgrel = 1
-	url = http://adventuresofsquare.com/
-	arch = any
-	license = CCPL:by-nc
-	license = MIT
-	source = http://adventuresofsquare.com/downloads/square-ep2-win64-2.0.zip
-	sha256sums = 9ce8d75386833e7dc1a6f25c31aed18dff44a18f365d3f8bf6bef6f2f5e92117
-
-pkgname = square1-wad
-
+generated-by = makedeb
+pkgname = square-wad
+pkgbase = square-wad
+pkgdesc = The Adventures of Square, Episode 1&2 game data
+pkgrel = 0
+pkgver = 2.1
+url = http://adventuresofsquare.com/
+arch = all
+license = CCPL:by-nc
+license = MIT
+noextract = square-wad-2.1.zip
+optdepends = drdteam-repo: repo for the engines bellow
+optdepends = gzdoom: game engine
+optdepends = lzdoom: fork of gzdoom for older hardware (alternative)
+source = square-wad-2.1.zip::http://adventuresofsquare.com/downloads/square-ep2-pk3-2.1.zip
+b2sums = 5530aa655665700655d0a0f05bd79c79af66ce7875f5ef463afa066a9467b2ba1cb9b1aa862abc9d052e3494f3498c5aa9f479937e83cfbe2a271892fe87ae55
+optdepends = drdteam-repo: repo for the engines bellow
+optdepends = gzdoom: game engine
+optdepends = lzdoom: fork of gzdoom for older hardware (alternative)
diff --git a/.gitignore b/.gitignore
index 5642e2f..a847a04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,3 @@
-/*.tar.gz
-/*.tar.bz2
-/*.tar.xz
-/*.zip
-/*.7z
-/pkg/
-/src/
+square*
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
index 38e150d..3d0f49e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,39 @@
-# Maintainer: Jan Cholasta <grubber at grubber cz>
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Jan Cholasta (AUR) <grubber at grubber cz>
 
-pkgname=square1-wad
-pkgver=2.0
-pkgrel=1
-pkgdesc="The Adventures of Square, Episode 1 game data"
-arch=('any')
+pkgname=square-wad
+_wad="square1.pk3"
+pkgver=2.1
+pkgrel=0
+pkgdesc="The Adventures of Square, Episode 1&2 game data"
+arch=('all')
 url='http://adventuresofsquare.com/'
 license=('CCPL:by-nc' 'MIT')
-source=("http://adventuresofsquare.com/downloads/square-ep2-win64-${pkgver}.zip")
-sha256sums=('9ce8d75386833e7dc1a6f25c31aed18dff44a18f365d3f8bf6bef6f2f5e92117')
+# At least one game engine
+optdepends=('drdteam-repo: repo for the engines bellow'
+            'gzdoom: game engine'
+            'lzdoom: fork of gzdoom for older hardware (alternative)')
+source=("${pkgname}-${pkgver}.zip::${url}downloads/square-ep2-pk3-${pkgver}.zip")
+noextract=("${pkgname}-${pkgver}.zip")
+b2sums=('5530aa655665700655d0a0f05bd79c79af66ce7875f5ef463afa066a9467b2ba1cb9b1aa862abc9d052e3494f3498c5aa9f479937e83cfbe2a271892fe87ae55')
+
+prepare() {
+  cd "${srcdir}"
+  # extract archive
+  mkdir -p "${pkgname}-${pkgver}"
+  bsdtar -xf "${pkgname}-${pkgver}.zip" -C "${pkgname}-${pkgver}"
+}
 
 package() {
-    install -D -m644 'square1.pk3' "${pkgdir}/usr/share/doom/square1.pk3"
 
-    install -D -m644 'SQUARE-LICENSE.txt' "${pkgdir}/usr/share/licenses/${pkgname}/SQUARE-LICENSE.txt"
+    install -D -m644 "${pkgname}-${pkgver}/${_wad}" "${pkgdir}/usr/share/games/doom/${_wad}"
+    install -D -m644 "${pkgname}-${pkgver}/CHANGELOG.txt" "${pkgdir}/usr/share/doc/${pkgname}/changelog"
+    gzip "${pkgdir}/usr/share/doc/${pkgname}/changelog"
+
+    echo 'The ACS scripting source code of The Adventures of Square is licensed
+under the MIT License.
+
+All other assets pertaining to The Adventures of Square and NOT those
+of the ZDoom Engine are licensed under the Creative Commons 
+Attribution-NonCommercial 4.0 International License.' > "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
 }