aur/PKGBUILD

51 lines
1.8 KiB
Bash
Raw Normal View History

2015-06-14 01:18:01 +02:00
# Contributor: Tom < reztho at archlinux dot us >
pkgname=openmsx-catapult
2015-10-11 11:33:44 +02:00
pkgver=0.12.0
2015-06-14 01:18:01 +02:00
pkgrel=1
pkgdesc="Front-end for openMSX: the MSX emulator that aims for perfection."
arch=('i686' 'x86_64')
2015-10-11 11:33:44 +02:00
url="http://openmsx.org"
2015-06-14 01:18:01 +02:00
license=('GPL')
depends=('libxml2' 'wxgtk2.8' 'zlib' 'libjpeg' 'libpng' 'libtiff' "openmsx=${pkgver}")
makedepends=('python2')
2015-10-11 11:33:44 +02:00
source=("https://github.com/openMSX/wxcatapult/archive/RELEASE_${pkgver//./_}.tar.gz")
2015-06-14 01:18:01 +02:00
build() {
2015-10-11 11:33:44 +02:00
cd "wxcatapult-RELEASE_${pkgver//./_}"
2015-06-14 01:18:01 +02:00
# Catapult requires python2
sed -i 's@=python@=python2@' build/main.mk
# Changing some default configurations...
sed -i 's@SYMLINK_FOR_BINARY:=true@SYMLINK_FOR_BINARY:=false@' build/custom.mk
sed -i 's@/opt/openMSX-Catapult@/usr/share/openmsx-catapult@' build/custom.mk
sed -i 's@/opt/openMSX/bin/openmsx@/usr/bin/openmsx@' build/custom.mk
sed -i 's@/opt/openMSX/share@/usr/share/openmsx@' build/custom.mk
echo 'INSTALL_DOC_DIR:=/usr/share/doc/openmsx-catapult' >> build/custom.mk
echo 'INSTALL_SHARE_DIR:=/usr/share/openmsx-catapult' >> build/custom.mk
echo 'INSTALL_BINARY_DIR:=/usr/bin' >> build/custom.mk
# Required by version 0.10.0 of catapult
2015-10-11 11:33:44 +02:00
# sed -i 's@wx-config@wx-config-2.8@g' build/main.mk
# sed -i 's@wx-config@wx-config-2.8@g' build/probe.mk
2015-06-14 01:18:01 +02:00
# Compiling
make
}
package() {
2015-10-11 11:33:44 +02:00
cd "wxcatapult-RELEASE_${pkgver//./_}"
2015-06-14 01:18:01 +02:00
mkdir -p "${pkgdir}/usr/share/applications"
make DESTDIR="${pkgdir}" install
# Fixing the .desktop file
sed -i 's@/usr/share/openmsx-catapult/bin/catapult@/usr/bin/catapult@' \
"${pkgdir}/usr/share/applications/openMSX-Catapult.desktop"
sed -i 's@/usr/share/openmsx-catapult/doc/@/usr/share/doc/openmsx-catapult/@' \
"${pkgdir}/usr/share/applications/openMSX-Catapult.desktop"
}
md5sums=('f112f679923f13a2e548a647b593c763')
2015-10-11 11:33:44 +02:00
md5sums=('ea11f459a2d40ad7977a10e783421af5')