summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d86d018591571eef8fe8add6b0396bacd5ba3af (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
35
36
37
38
39
# Maintainer: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
pkgname=boxtron-git
_pkgname="${pkgname%-git}"
pkgver=0.5.0.r2.e4bf54e
pkgrel=1
pkgdesc='Compatibility tool to run DOS games on Steam through native Linux DOSBox – NOTE: Won’t work as intended until next Steam beta cycle!'
arch=('i686' 'x86_64')
url="https://github.com/dreamer/$_pkgname"
license=('GPL')
depends=('dosbox' 'inotify-tools')
makedepends=('git')
optdepends=(
  'steam: The Steam client'
  'timidity++: MIDI support'
  'soundfont-fluid: MIDI support')
install=$_pkgname.install
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  sed -i -E '/^tool_(name|dir) +=/s/$/-git/' Makefile
  sed -i -E '/^tool_name_display +=/s/$/ (git)/' Makefile
}

check() {
  cd "$_pkgname"
  make test
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" prefix=/usr install
}