diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 69 |
1 files changed, 23 insertions, 46 deletions
@@ -1,57 +1,34 @@ -# Contributor: Lex Black <autumn-wind at web dot de> -# Contributor: Eugene Yunak <val-amart at mail dot ru> -# Contributor: Perttu Luukko <"perttu.luukko" followed by "@iki.fi"> +# Maintainer: Emanuele 'Lele aka eldios' Calo' <xeldiosx[at]gmail[dot]com> pkgname=adom-noteye -pkgver=1.15.2 -_release=r60 -_date=2015/08/23 -pkgrel=4 -pkgdesc="roguelike game with a quest-centric, plot driven structure" -arch=('i686' 'x86_64') -depends=('mesa' 'lua51' 'libtinfo' 'ncurses5-compat-libs' 'libcaca' 'libmad' 'fluidsynth' - 'sdl2_image' 'sdl2_mixer' 'sdl2_net' 'sdl2_ttf' 'zlib') # 'libpng12' (adom sdl2 link against it) -url="http://www.adom.de/home/index.html" -license=('custom: "adom"') -source=(LICENSE - adom-noteye.sh) -source_i686+=(http://ams2.dl.dbolical.com/${_date}/adom_noteye_linux_ubuntu_32_${_release}_pub.tar.gz) -source_x86_64+=(http://ams2.dl.dbolical.com/${_date}/adom_noteye_linux_ubuntu_64_${_release}_pub.tar.gz) -sha1sums=('51d28fe3f0420cd354113fd7ceb2a1a7abf1b069' - 'd1d1a279e6d4d296f09519381674b5ea99007599') -sha1sums_i686=('72febc188d80daa01b3a34fa2d6449b4c45826f9') -sha1sums_x86_64=('ff7e022afa7c0ba364fc697e240c7236604235b5') +epoch=1 +pkgver=2.3.8 +pkgrel=1 +pkgdesc="A roguelike game with a quest-centric, plot driven structure (+ GUI)" +arch=("x86_64") +url="http://www.adom.de/" +conflicts=('adom' 'adom-restricted' 'adom-noteye') +provides=('adom') +depends=('ncurses' 'mesa' 'sdl_image' 'sdl_net' 'sdl_mixer' 'lua51' + 'libtinfo' 'libbsd') +_source_url="https://repo.sshadm.in/archlinux/eldios/${arch}" +license=('custom: "adom"') +source_x86_64=(${_source_url}/adom_noteye_64_2.3.8.tar.gz) -prepare() { - cd "adom/lib/" - - # Remove some bundled libs for which we have perfectly good versions available - rm -f "libFLAC.so.8" - rm -f "libjpeg.so.8" - rm -f "liblua5.1.so.0" - ln -s ../../../usr/lib/liblua5.1.so liblua5.1.so.0 - #rm -f "libmikmod.so.2" - # libnoteye.so we keep at this point - rm -f "libogg.so.0" - rm -f "libSDL2-2.0.so.0" - rm -f "libSDL2_image-2.0.so.0" - rm -f "libSDL2_mixer-2.0.so.0" - rm -f "libSDL2_net-2.0.so.0" - rm -f "libSDL2_ttf-2.0.so.0" - #rm -f "libtiff.so.4" - rm -f "libvorbisfile.so.3" - rm -f "libvorbis.so.0" - rm -f "libz.so.1" -} +# PACKAGES +sha256sums_x86_64=('3fc5d7cc0d40a796e6f38ddea9ae6eb7d0f88424be7fd8680364823e1e132751') package() { # Copy entire contents of the archive to /opt install -d "${pkgdir}/opt" - cp -R "${srcdir}/adom" "${pkgdir}/opt/adom-noteye" - + cp -R "${srcdir}/adom" "${pkgdir}/opt/" # Since the adom binary uses a relative RPATH, it's either # this or patching the binary - install -Dm755 "${srcdir}/adom-noteye.sh" "${pkgdir}/usr/bin/adom-noteye" - install -m644 -D ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/adom-noteye/LICENSE + install -d "${pkgdir}/usr/bin" + cat>"${pkgdir}/usr/bin/adom"<<EOF +#!/bin/sh +cd /opt/adom && ./adom +EOF + chmod 755 "${pkgdir}/usr/bin/adom" } |