diff options
author | Dmitry Kharitonov | 2017-03-02 22:51:43 +0500 |
---|---|---|
committer | Dmitry Kharitonov | 2017-03-02 22:51:43 +0500 |
commit | 0f9232ff68fd004b03f6bdc18a7e2a765948c455 (patch) | |
tree | 0ff6e1182d214c28d718dd5707ea48c545905a9f /PKGBUILD | |
download | aur-0f9232ff68fd004b03f6bdc18a7e2a765948c455.tar.gz |
Track PKGBUILD files
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..888dd4886d3b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,76 @@ +# Maintainer: Dmitry Kharitonov <darksab0r@gmail.com> +# Contributor: Jakob Gruber <jakob.gruber@gmail.com> + +pkgname=stone-soup-yiuf +pkgver=1.2 +pkgrel=1 +pkgdesc='A fork of Dungeon Crawl Stone Soup roguelike with old races recovered' +arch=('i686' 'x86_64') +url='http://crawl.develz.org/' +depends=('lua51' 'ncurses' 'sdl2_image' 'sqlite' 'glu' 'freetype2' 'ttf-dejavu') +makedepends=('bison' 'flex' 'gendesk' 'mesa') +conflicts=('crawl' 'stone-soup-tile') +license=('custom') +source=("https://github.com/yrmvgh/crawl/archive/v${pkgver}.tar.gz") +sha256sums=('c1bb1522716d384e54f2641c673332ba6535fa9abc14793a84f85e97f16a5ae8') + +# used by gendesk to create .desktop file +_exec=('crawl-yiuf-tiles') +_name=('Dungeon Crawl Stone Soup (Yiuf branch)') + +package() { + cd "$srcdir" + gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \ + --exec 'crawl-yiuf-tiles' --name 'Dungeon Crawl Stone Soup (Yiuf branch)' PKGBUILD + + cd "crawl-${pkgver}/crawl-ref/source" + + # 0.16.0 weirdness + sed -i 's|SDL_main.h|SDL2/&|' main.cc + + # git tarball weirdness + echo "$pkgver" > util/release_ver + + # adjust makefile to use /usr/bin, owner root:root, + # disable setgid on executable + + sed -i 's|bin_prefix := bin|bin_prefix := usr/bin|' Makefile + sed -i 's/INSTALL_UGRP := games:games/INSTALL_UGRP := root:root/' Makefile + sed -i 's|MCHMOD := 2755|MCHMOD := 755|' Makefile + + # first build and install tiles version + + make GAME=crawl-yiuf \ + DESTDIR="${pkgdir}" \ + SAVEDIR="~/.crawl-yiuf/" \ + DATADIR="/usr/share/${pkgname}/data" \ + USE_UNICODE=y \ + TILES=y \ + install + + # rename tiles executable to avoid clashing with console crawl + + mv "${pkgdir}/usr/bin/crawl-yiuf" "${pkgdir}/usr/bin/crawl-yiuf-tiles" + + # then build and install console version + + make GAME=crawl-yiuf \ + DESTDIR="${pkgdir}" \ + SAVEDIR="~/.crawl-yiuf/" \ + DATADIR="/usr/share/${pkgname}/data" \ + USE_UNICODE=y \ + install + + # install crawl license + + install -D -m644 ../licence.txt \ + "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" + + # install icon and .desktop file + + install -D -m644 dat/tiles/stone_soup_icon-32x32.png \ + "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install -D -m644 "${srcdir}/${pkgname}.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + +} |