void-packages/srcpkgs/macemu-git/template

63 lines
1.8 KiB
Plaintext

# Template file for 'macemu-git'
pkgname=macemu-git
version=20190405
revision=3
_git_hash=01052ca89d22882c870b84c5498cd0ee9a843b6b
archs="i686* x86_64*"
wrksrc="macemu-${_git_hash}"
hostmakedepends="make automake libtool pkg-config"
makedepends="gtk+-devel SDL-devel vde2-devel"
depends="dkms"
short_desc="Basilisk II and SheepShaver Macintosh emulators"
maintainer="Alison Watson <marrub@greyserv.net>"
license="GPL-2.0-or-later"
homepage="https://github.com/cebix/macemu"
distfiles="https://github.com/cebix/macemu/archive/${_git_hash}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=65aa7c4f7b6bcf1f83b2c44589fcdeded10104a14532fa98ad2b04b31827a599
dkms_modules="sheep_net ${version}"
_dkms_name="sheep_net-${version}"
nopie=yes
do_configure() {
cd "${wrksrc}"/BasiliskII/src/Unix
./autogen.sh \
--prefix=/usr --enable-sdl-video --enable-sdl-audio --enable-tuntap \
--with-bincue --with-vdeplug
cd "${wrksrc}"/SheepShaver/src/Unix
./autogen.sh \
--prefix=/usr --enable-sdl-video --enable-sdl-audio --enable-tuntap \
--with-bincue --with-vdeplug
}
do_build() {
cd "${wrksrc}"/BasiliskII/src/Unix; make -j1
cd "${wrksrc}"/SheepShaver/src/Unix; make -j1
cp -rL Linux/NetDriver _netdriver
}
do_install() {
cd "${wrksrc}"/BasiliskII/src/Unix
make DESTDIR="${DESTDIR}" install
cd "${wrksrc}"/SheepShaver/src/Unix
make DESTDIR="${DESTDIR}" install
cd ../..
vmkdir usr/share/doc
vmkdir usr/src
vcopy doc/Linux usr/share/doc/SheepShaver
vcopy src/Unix/_netdriver usr/src/"${_dkms_name}"
vinstall "${FILESDIR}"/dkms.conf 644 usr/src/"${_dkms_name}"
vsed -i "${PKGDESTDIR}"/usr/src/${_dkms_name}/dkms.conf \
-e "s/@VERSION@/${version}-${revision}/"
vmkdir usr/lib/modules-load.d
vinstall "${FILESDIR}"/sheep_net.conf 644 usr/lib/modules-load.d
}