void-packages/srcpkgs/adobe-flash-plugin11.1/template

47 lines
1.9 KiB
Plaintext

# Template file for 'adobe-flash-plugin11.1'
pkgname=adobe-flash-plugin11.1
version=11.1.102.63
revision=1
# The EULA file
_eula="http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEULA_Combined_20100108_1657.pdf"
_eulacksum=3cb0a5f4576be735abcff7189ed18eda17c70b762c3a78a3379b6f44395fbc10
_url=http://fpdownload.macromedia.com/get/flashplayer/pdc/${version}
if [ "$XBPS_MACHINE" = "x86_64" ]; then
_disttarball="http://arm.konnichi.com/extra/os/x86_64/flashplugin-${version}-1-x86_64.pkg.tar.xz"
_distcksum=ce02c0f1ca32d231370d092cb068b23406d27e2a37b15b7e4193a9798999fb77
else
_disttarball="http://arm.konnichi.com/extra/os/i686/flashplugin-${version}-1-i686.pkg.tar.xz"
_distcksum=ee742e536c9ede8e3d9f46b92e4b6856b63e47f489c2dba10087da21ef701153
fi
distfiles="${_eula} ${_disttarball}"
checksum="${_eulacksum} ${_distcksum}"
skip_extraction="$(basename ${_eula})"
short_desc="Adobe Flash Player plugin (11.1 series)"
homepage="http://www.adobe.com"
license="Propietary license - adobe"
maintainer="Juan RP <xtraeme@gmail.com>"
nonfree="yes"
replaces="adobe-flash-plugin>=0"
provides="adobe-flash-plugin-11.1.102.63"
makedepends="curl hicolor-icon-theme desktop-file-utils"
depends="${makedepends}"
create_srcdir=yes
create_wrksrc=yes
do_install() {
vinstall usr/lib/mozilla/plugins/libflashplayer.so 755 usr/lib/mozilla/plugins
#vinstall usr/lib/kde4/kcm_adobe_flash_player.so 755 usr/lib/kde4
vinstall usr/bin/flash-player-properties 755 usr/bin
for i in 16x16 22x22 24x24 32x32 48x48; do
vinstall usr/share/icons/hicolor/${i}/apps/flash-player-properties.png \
644 usr/share/icons/hicolor/${i}/apps
done
vinstall usr/share/applications/flash-player-properties.desktop 644 \
usr/share/applications
vinstall usr/share/kde4/services/kcm_adobe_flash_player.desktop 644 \
usr/share/kde4/services
vinstall "${XBPS_SRCDISTDIR}/${pkgname}-${version}/$(basename ${_eula})" 644 \
usr/share/licenses/${pkgname} LICENSE.pdf
}