void-packages/srcpkgs/wine-gecko/template

45 lines
1.4 KiB
Text
Raw Normal View History

2012-09-20 11:33:14 +00:00
# Template file for 'wine-gecko'
pkgname=wine-gecko
2013-10-28 15:31:27 +00:00
version="2.24"
2012-09-20 11:33:14 +00:00
revision=1
if [ "$XBPS_MACHINE" = "i686" ]; then
gecko_arch="x86"
2013-10-28 15:31:27 +00:00
checksum=6e38acae87ea66e2c1e8f2f0afe88f89eed3e6e0b431cd3da38dea814b71202c
2012-09-20 11:33:14 +00:00
else
gecko_arch="$XBPS_MACHINE"
checksum=19d0364a43621738fa3fd1713ef9590ad0cc61ea4c8858ad3f8703a81b13c927
fi
2013-10-28 15:31:27 +00:00
distfiles="${SOURCEFORGE_SITE}/wine/wine_gecko-${version}-${gecko_arch}.msi"
2012-09-20 11:33:14 +00:00
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."
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" \
2012-09-20 11:33:14 +00:00
${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" \
2012-09-20 11:33:14 +00:00
"${DESTDIR}/usr/share/wine/gecko"
}
wine-gecko_package() {
2013-10-28 15:31:27 +00:00
depends="wine"
pkg_install() {
vmove usr
}
}