# Maintainer: Frederik “Freso” S. Olesen pkgname=boxtron-git _pkgname="${pkgname%-git}" pkgver=0.5.2.r3.9f10193 pkgrel=2 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=('python' 'dosbox' 'inotify-tools' 'timidity++') makedepends=('git') optdepends=( 'steam: The Steam client' 'soundfont-fluid: required for MIDI support, but another soundfont can be used') 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 }