blob: 611fef7deba1c70bbd2740acd71b8da387e895ad (
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
40
41
42
43
44
45
46
47
48
|
# Maintainer: Daniel Menelkir <dmenelkir at gmail dot com>
# Contributor: Tom < reztho at archlinux dot us >
pkgname=openmsx
pkgver=20.0
pkgrel=1
pkgdesc="The MSX emulator that aims for perfection."
arch=('i686' 'x86_64')
url="http://openmsx.org/"
license=('custom')
depends=('libxml2' 'sdl' 'sdl_image' 'sdl2_ttf' 'tcl' 'libpng' 'zlib' 'glew' 'libgl')
optdepends=('python' 'jack-audio-connection-kit')
install=${pkgname}.install
provides=("openmsx")
conflicts=("openmsx-git")
source=("https://github.com/openMSX/openMSX/releases/download/RELEASE_${pkgver//./_}/${pkgname}-${pkgver}.tar.gz")
md5sums=('baa9eb5e84a7b3114a8a62d969197455')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Changing some default configurations...
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}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# Licenses
mkdir -p "${pkgdir}/usr/share/licenses/openmsx"
ln -s /usr/share/licenses/common/GPL2/license.txt "${pkgdir}/usr/share/licenses/openmsx/openmsx.txt"
install -m 644 "${pkgdir}/usr/share/doc/openmsx/cbios.txt" "${pkgdir}/usr/share/licenses/openmsx/"
# Desktop entry
sed s/\ *Catapult//g ${srcdir}/${pkgname}-${pkgver}/build/package-slackware/catapult.desktop | sed s/Exec=.*/Exec=openmsx/ | sed s/Icon=.*/Icon=\\/usr\\/share\\/openmsx\\/icons\\/openMSX-logo-256.png/ > ${srcdir}/openmsx.desktop
mkdir -p "${pkgdir}/usr/share/applications/"
install -m 644 "${srcdir}/openmsx.desktop" "${pkgdir}/usr/share/applications/openmsx.desktop"
}
|