blob: f2f5ce6c4a8fc14a6488d100bd38359baa56d681 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Emanuele 'Lele aka eldios' Calo' <xeldiosx[at]gmail[dot]com>
pkgname=adom-noteye
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)
# PACKAGES
sha256sums_x86_64=('3fc5d7cc0d40a796e6f38ddea9ae6eb7d0f88424be7fd8680364823e1e132751')
package() {
# Copy entire contents of the archive to /opt
install -d "${pkgdir}/opt"
cp -R "${srcdir}/adom" "${pkgdir}/opt/"
# Since the adom binary uses a relative RPATH, it's either
# this or patching the binary
install -d "${pkgdir}/usr/bin"
cat>"${pkgdir}/usr/bin/adom"<<EOF
#!/bin/sh
cd /opt/adom && ./adom
EOF
chmod 755 "${pkgdir}/usr/bin/adom"
}
|