diff --git a/srcpkgs/qmc2/template b/srcpkgs/qmc2/template index ebfc4959072..ca255697804 100644 --- a/srcpkgs/qmc2/template +++ b/srcpkgs/qmc2/template @@ -1,6 +1,6 @@ # Template file for 'qmc2' pkgname=qmc2 -version=0.66 +version=0.67 revision=1 wrksrc=${pkgname} build_style=gnu-makefile @@ -16,16 +16,16 @@ maintainer="Jürgen Buchmüller " license="GPL-2" homepage="http://qmc2.arcadehits.net/wordpress/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2" -checksum=5230edffb0b4be37869730394f52bf4bc925af7544e756b6b717f65ff3771bad +checksum=e3b9878b3a393c21c6f46e7ef3318978a03434011b1dacb6679319733b34ff47 nocross=yes nopie=yes pre_build() { # Replace sdl-config with sdl2-config - sed -e "s;sdl-config;sdl2-config;g" -i ${wrksrc}/scripts/sdl-version.sh + sed -e "s;sdl-config;sdl2-config;g" -i scripts/sdl-version.sh # Replace obsolete -sdlmame suffix - sed -e "s;-sdlmame;-mame;g" -i ${wrksrc}/Makefile + sed -e "s;-sdlmame;-mame;g" -i Makefile } do_build() { # Print configuration info @@ -37,13 +37,13 @@ do_install() { # Install /usr/bin/qmc2-mame and /etc/qmc2/qmc2.ini vbin qmc2-mame vmkdir etc/${pkgname} - sed ${wrksrc}/inst/qmc2.ini.template \ + sed inst/qmc2.ini.template \ -e "s;DATADIR;/usr/share;" \ > ${DESTDIR}/etc/${pkgname}/${pkgname}.ini # Install qmc2 desktop file vmkdir usr/share/applications - sed ${wrksrc}/inst/qmc2.desktop.template \ + sed inst/qmc2.desktop.template \ -e "s;DATADIR;/usr/share;" \ -e "s;EMULATOR;MAME;" \ -e "s;TARGET;qmc2-mame;" \ @@ -58,13 +58,13 @@ do_install() { done # Install qchdman and img - vbin ${wrksrc}/tools/qchdman/qchdman + vbin tools/qchdman/qchdman vmkdir usr/share/${pkgname} - cp -aR ${wrksrc}/data/img ${DESTDIR}/usr/share/${pkgname} + cp -aR data/img ${DESTDIR}/usr/share/${pkgname} # Install qchdman desktop file vmkdir usr/share/applications - sed ${wrksrc}/inst/qchdman.desktop.template \ + sed inst/qchdman.desktop.template \ -e "s;DATADIR;/usr/share;" \ > ${DESTDIR}/usr/share/applications/qchdman.desktop } @@ -72,11 +72,11 @@ qmc2-data_package() { noarch=yes short_desc+=" - data files" pkg_install() { - local ddir + local _ddir vmove usr/share/qmc2 - for ddir in opt img doc prv fly ico cat cab ctl \ + for _ddir in opt img doc prv fly ico cat cab ctl \ mrq ttl sws swn gmn js; do - cp -aR data/$ddir ${PKGDESTDIR}/usr/share/qmc2 + cp -aR data/$_ddir ${PKGDESTDIR}/usr/share/qmc2 done } }