makedeb


hacx-wad 1.2-1


Hacx IWAD (game data)

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

Commit:


Hash: 346d42f231361b32dfcae4b58fcf12e2e9c46302

Message: avoid conflict with future versions

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 0797f8c..a85a4f2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,11 +2,12 @@ generated-by = makedeb
 pkgname = hacx-wad
 pkgbase = hacx-wad
 pkgdesc = Hacx IWAD (game data)
-pkgrel = 0
+pkgrel = 1
 pkgver = 1.2
 url = http://www.drnostromo.com/hacx/
 arch = all
 license = custom
+noextract = hacx-wad-1.2.zip
 optdepends = dsda-doom: doom source port
 optdepends = drdteam-repo: repo for the engines bellow
 optdepends = gzdoom: enhanced doom game engine (alternative)
diff --git a/PKGBUILD b/PKGBUILD
index 841b1c2..5bf331e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=hacx-wad
 pkgver=1.2
-pkgrel=0
+pkgrel=1
 pkgdesc="Hacx IWAD (game data)"
 arch=('all')
 url="http://www.drnostromo.com/hacx/"
@@ -14,10 +14,18 @@ optdepends=('dsda-doom: doom source port'
             'gzdoom: enhanced doom game engine (alternative)'
             'lzdoom: fork of gzdoom for older hardware (alternative)')
 source=(${pkgname}-${pkgver}.zip::http://www.drnostromo.com/hacx/files/hacx12.zip)
+noextract=("${pkgname}-${pkgver}.zip")
 b2sums=('517014c1522b6a15ae01cc9a824d0125a4e2215ce618c6a315ee0056f7438d538d73393d2f9b8659ac6860ba5da89b0074d16954478e03ffe628e52b36acc8fa')
 
+prepare() {
+  cd "${srcdir}"
+  # extract archive
+  mkdir -p "${pkgname}-${pkgver}"
+  bsdtar -xf "${pkgname}-${pkgver}.zip" -C "${pkgname}-${pkgver}"
+}
+
 package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
   install -Dm644 HACX.WAD "$pkgdir/usr/share/games/doom/hacx.wad"
-
   install -Dm644 HACX.TXT "$pkgdir/usr/share/doc/$pkgname/hacx.txt"
 }