41 lines
905 B
Bash
41 lines
905 B
Bash
# Maintainer: Alison Watson <marrub@greyserv.net>
|
|
|
|
_pkgname=bsnes-plus
|
|
pkgname=${_pkgname}-git
|
|
pkgver=0.73r525.b95f6bc
|
|
pkgrel=1
|
|
pkgdesc='A debug-oriented fork of bsnes v073'
|
|
arch=('x86_64')
|
|
url="https://github.com/devinacker/${_pkgname}"
|
|
license=('GPL3')
|
|
depends=('libao' 'libpulse' 'openal' 'qt5-base' 'sdl')
|
|
makedepends=('mesa' 'gcc' 'git')
|
|
source=("git+${url}.git")
|
|
sha256sums=('SKIP')
|
|
conflicts=('bsnes-plus' 'bsnes-classic' 'bsnes-plus-git')
|
|
provides=('bsnes-plus')
|
|
_projects=(bsnes snesfilter snesmusic snesreader supergameboy)
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${_pkgname}"
|
|
printf "0.73r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
build() {
|
|
for proj in ${_projects}
|
|
do
|
|
cd "${srcdir}/${_pkgname}/${proj}"
|
|
make
|
|
done
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
for proj in ${_projects}
|
|
do
|
|
cd "${srcdir}/${_pkgname}/${proj}"
|
|
make install DESTDIR="${pkgdir}"
|
|
done
|
|
}
|