summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ae6bd1f97f8..4e3235b1742 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,27 +5,23 @@ pkgname=eduke32-shareware-episode
pkgver=1.3
pkgrel=1
pkgdesc="Duke Nukem 3D shareware episode for EDuke32"
-arch=('i686' 'x86_64')
+arch=('any')
url="http://3drealms.com/"
-license=('shareware')
+license=('custom: shareware')
depends=('eduke32')
makedepends=('unzip')
source=("ftp://ftp.3drealms.com/share/3dduke13.zip")
-md5sums=('04e4ca70b8a2d59ed56c451c5c1d5d39')
sha256sums=('c67efd179022bc6d9bde54f404c707cbcbdc15423c20be72e277bc2bdddf3d0e')
-build() {
- cd "$srcdir"
-
+prepare() {
# extract episode files
unzip -Luq "DN3DSW13.SHR" defs.con duke.rts game.con license.txt user.con duke3d.grp
}
package() {
- cd "$srcdir"
-
- # install files
- install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
- mkdir -p "$pkgdir/usr/share/games/eduke32"
- install -m644 defs.con duke.rts game.con user.con duke3d.grp "$pkgdir/usr/share/games/eduke32"
+ # data
+ install -d "$pkgdir"/usr/share/games/eduke32
+ install -m644 duke.rts {defs,game,user}.con duke3d.grp "$pkgdir"/usr/share/games/eduke32
+ # license
+ install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
}