summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f98bdd5a8b8c99381122450af9f7fb5c6e7b18b (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=4
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'
         '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=('b7bc418e872dbf290f2279d8c554c4ac19f58ae0ace2e8f3c16b1cf4fb87dc26')

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"
}