void-packages/srcpkgs/wine-gecko/template
2012-09-20 05:33:14 -06:00

41 lines
1.3 KiB
Text

# Template file for 'wine-gecko'
pkgname=wine-gecko
pkgname2=wine_gecko
version="1.7"
revision=1
gecko_arch=
if [ "$XBPS_MACHINE" = "i686" ]; then
gecko_arch="x86"
checksum=2ed524e79cc88137b28430389af19cb032989311921462a29f72d6f121954913
else
gecko_arch="$XBPS_MACHINE"
checksum=19d0364a43621738fa3fd1713ef9590ad0cc61ea4c8858ad3f8703a81b13c927
fi
distfiles="${SOURCEFORGE_SITE}/wine/${pkgname2}-${version}-${gecko_arch}.msi"
depends="wine-unstable"
homepage="http://wiki.winehq.org/Gecko"
license="MPL-2"
short_desc="Mozilla Gecko Layout Engine for WINE to replace Internet Explorer."
maintainer="davehome <davehome@redthumb.info.tm>"
long_desc="
WINE implements its own version of Internet Explorer. The implementation is
based on a custom version of the Mozilla Gecko Layout Engine. When an
application tries to display a web page, it loads the WINE custom Gecko."
noextract=yes
create_wrksrc=yes
do_extract() {
# This is to avoid re-downloading it everytime this template is
# edited with a revbump... without an actual version bump.
cp -v "${XBPS_SRCDISTDIR}/${pkgname2}-${version}-${gecko_arch}.msi" \
${wrksrc}
}
do_install() {
# The actual installation within WINE occurs at runtime in whatever
# WINEPREFIX is being used.
mkdir -pv "${DESTDIR}/usr/share/wine/gecko"
mv -v "${pkgname2}-${version}-${gecko_arch}.msi" \
"${DESTDIR}/usr/share/wine/gecko"
}