# Contributor: Tom < reztho at archlinux dot us > # Maintainer: Heavysink pkgname=openmsx-git _pkgname=openMSX pkgver=15158.9fe29bab7 pkgrel=1 pkgdesc="The MSX emulator that aims for perfection." arch=('i686' 'x86_64' 'armv7h' 'riscv64') url="http://openmsx.org/" license=('custom') depends=('libxml2' 'sdl2' 'sdl2_ttf' 'tcl' 'libpng' 'zlib' 'alsa-lib' 'glew' 'libogg' 'libtheora' 'libvorbis') makedepends=('git' 'python') optdepends=('python' 'jack-audio-connection-kit' 'catalyst-utils' 'nvidia-utils' 'nvidia-304xx-utils') install=openmsx.install provides=('openmsx') conflicts=('openmsx') source=("git+https://github.com/openMSX/openMSX") sha256sums=('SKIP') pkgver() { cd "${srcdir}/openMSX" printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/openMSX" # # Changing some default configurations... sed -i 's@@@' build/libraries.py sed -i 's@SYMLINK_FOR_BINARY:=true@SYMLINK_FOR_BINARY:=false@' build/custom.mk sed -i 's@INSTALL_BASE:=/opt/openMSX@INSTALL_BASE:=/usr/share/openmsx@' build/custom.mk echo 'INSTALL_DOC_DIR:=/usr/share/doc/openmsx' >> build/custom.mk echo 'INSTALL_SHARE_DIR:=/usr/share/openmsx' >> build/custom.mk echo 'INSTALL_BINARY_DIR:=/usr/bin' >> build/custom.mk # Compiling ./configure make } package() { cd "${srcdir}/openMSX" make DESTDIR="${pkgdir}" install # Licenses mkdir -p "${pkgdir}/usr/share/licenses/openmsx" install -m 644 "${pkgdir}/usr/share/doc/openmsx/cbios.txt" "${pkgdir}/usr/share/licenses/openmsx/" } md5sums=('SKIP')