void-packages/srcpkgs/wine-gecko/template

45 lines
1.4 KiB
Text

# Template file for 'wine-gecko'
pkgname=wine-gecko
version="1.7"
revision=1
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"
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}/wine_gecko-${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 "wine_gecko-${version}-${gecko_arch}.msi" \
"${DESTDIR}/usr/share/wine/gecko"
}
wine-gecko_package() {
depends="wine-unstable"
pkg_install() {
vmove usr
}
}