summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2014-01-08 22:39:48 +0100
committerCarsten Teibes2014-01-08 22:39:48 +0100
commit3e9abd4ede015f44f45e6a503481b0ff93768b38 (patch)
treed9f36697f833406b70e65b7abff8f8075faa470b
parent11aa331803ad426f63a88a57a412f1b4f373d9f3 (diff)
downloadaur-eduke32-shareware-episode.tar.gz
Cleanup
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD20
2 files changed, 10 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3d87332d510..0b08aa4a4ed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,13 +3,11 @@ pkgbase = eduke32-shareware-episode
pkgver = 1.3
pkgrel = 1
url = http://3drealms.com/
- arch = i686
- arch = x86_64
- license = shareware
+ arch = any
+ license = custom: shareware
makedepends = unzip
depends = eduke32
source = ftp://ftp.3drealms.com/share/3dduke13.zip
- md5sums = 04e4ca70b8a2d59ed56c451c5c1d5d39
sha256sums = c67efd179022bc6d9bde54f404c707cbcbdc15423c20be72e277bc2bdddf3d0e
pkgname = eduke32-shareware-episode
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
}