Date: Sunday, November 22, 2015 @ 05:29:27 Author: kkeen Revision: 147367
upgpkg: cataclysm-dda 0.C-2 Modified: cataclysm-dda/trunk/PKGBUILD ----------+ PKGBUILD | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-11-22 03:56:52 UTC (rev 147366) +++ PKGBUILD 2015-11-22 04:29:27 UTC (rev 147367) @@ -3,7 +3,7 @@ pkgname=cataclysm-dda pkgver=0.C -pkgrel=1 +pkgrel=2 pkgdesc="A post-apocalyptic roguelike." #url="http://cataclysmrl.blogspot.com/" #url="http://www.cataclysm.glyphgryph.com/" @@ -15,7 +15,7 @@ optdepends=('sdl2_image: for tiles' 'sdl2_ttf: for tiles' 'freetype2: for tiles' - 'sdl2_mixer: for sound') + 'sdl2_mixer: for tiles') install=cataclysm-dda.install source=("https://github.com/CleverRaven/Cataclysm-DDA/archive/$pkgver.tar.gz") md5sums=('805132ab7651ba93e5247ced7fe1fc97') @@ -22,10 +22,11 @@ # official docs say to use lua51 # but makefile supports lua52? -# what the heck, let's try lua53 +# lua53 works, but git HEAD detects/uses lua51? # tiles + executable are about half of the package -# consider splitting? +# next release looks like 2/3rds, consider splitting +# USE_XDG_DIR for next release build() { cd "Cataclysm-DDA-$pkgver" @@ -51,4 +52,17 @@ make PREFIX="$pkgdir/usr" \ RELEASE=1 ZLEVELS=1 USE_HOME_DIR=1 LUA=1 TILES=1 SOUND=1 \ install + + # Icon + install -D 'data/osx/AppIcon.iconset/icon_128x128.png' "$pkgdir/usr/share/icons/hicolor/128x128/apps/cataclysm-dda.png" + + # Docs + install -d "$pkgdir/usr/share/doc/cataclysm-dda" + cp -r doc/* "$pkgdir/usr/share/doc/cataclysm-dda" + # undo symlink + rm "$pkgdir/usr/share/doc/cataclysm-dda/JSON_LOADING_ORDER.md" + cp 'data/json/LOADING_ORDER.md' "$pkgdir/usr/share/doc/cataclysm-dda/ JSON_LOADING_ORDER.md" + + # License + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }
