mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-02-03 09:17:15 +08:00
Add flash
This commit is contained in:
parent
6b96f758cb
commit
92c7f36117
@ -2,16 +2,16 @@
|
||||
|
||||
pkgname=filesystem-extra
|
||||
pkgver=2013.04
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
arch=('any')
|
||||
pkgdesc="Extra filesystem"
|
||||
groups=('extra')
|
||||
install=extra.install
|
||||
source=('extra.conf' 'extra.profile' 'extra.tcsh')
|
||||
md5sums=('b0f054b6c5f809927817b345351ed7b6'
|
||||
'4b85c20ced4074aaed00d655d075f164'
|
||||
'3ab04e0f2ac65f4834e1861d65bbf83d')
|
||||
|
||||
'1b6239c9831a902984bfae2ef225dee6'
|
||||
'92f34257b49c2b15c7205222c4c22d5b')
|
||||
|
||||
package() {
|
||||
cd ${pkgdir}
|
||||
|
||||
|
@ -13,3 +13,9 @@ if [ ! -z $XDG_CONFIG_DIRS ]; then
|
||||
else
|
||||
export XDG_CONFIG_DIRS=$EXTRADIR/etc/xdg
|
||||
fi
|
||||
if [ ! -z $MOZ_PLUGIN_PATH ]; then
|
||||
export XMOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$EXTRADIR/usr/lib/mozilla/plugins
|
||||
else
|
||||
export MOZ_PLUGIN_PATH=$EXTRADIR/usr/lib/mozilla/plugins
|
||||
fi
|
||||
|
||||
|
@ -13,3 +13,8 @@ if ( ! $?XDG_CONFIG_DIRS ) then
|
||||
else
|
||||
setenv XDG_CONFIG_DIRS $XDG_CONFIG_DIRS:$EXTRADIR/etc/xdg
|
||||
endif
|
||||
if ( ! $MOZ_PLUGIN_PATH ) then
|
||||
setenv MOZ_PLUGIN_PATH=$EXTRADIR/usr/lib/mozilla/plugins
|
||||
else
|
||||
setenv MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$EXTRADIR/usr/lib/mozilla/plugins
|
||||
endif
|
||||
|
35
flashplugin/PKGBUILD
Normal file
35
flashplugin/PKGBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
pkgname=flashplugin
|
||||
_licensefile='PlatformClients_PC_WWEULA_Combined_20100108_1657.pdf'
|
||||
pkgver=11.2.202.275
|
||||
pkgrel=2
|
||||
pkgdesc='Adobe Flash Player'
|
||||
url='http://labs.adobe.com/technologies/flashplatformruntimes/flashplayer11/'
|
||||
arch=('x86_64')
|
||||
depends=('mozilla-common' 'libxt' 'libxpm' 'gtk2' 'nss' 'curl' 'filesystem-extra')
|
||||
optdepends=('libvdpau: GPU acceleration on Nvidia card')
|
||||
provides=('flashplayer')
|
||||
license=('custom')
|
||||
options=(!strip)
|
||||
install='flashplugin.install'
|
||||
backup=('extra/etc/adobe/mms.cfg')
|
||||
source=("http://fpdownload.macromedia.com/get/flashplayer/pdc/$pkgver/install_flash_player_11_linux.x86_64.tar.gz"
|
||||
"http://www.adobe.com/products/eulas/pdfs/${_licensefile}"
|
||||
'mms.cfg')
|
||||
md5sums=('d0a35620a3e54f6fa9e4c64b7c3d095f'
|
||||
'94ca2aecb409abfe36494d1a7ec7591d'
|
||||
'31e165d90ffbfdd9d25291b74d68eded')
|
||||
|
||||
package () {
|
||||
cd ${srcdir}
|
||||
install -Dm755 libflashplayer.so "${pkgdir}/extra/usr/lib/mozilla/plugins/libflashplayer.so"
|
||||
install -Dm755 usr/lib64/kde4/kcm_adobe_flash_player.so "${pkgdir}/extra/usr/lib/kde4/kcm_adobe_flash_player.so"
|
||||
install -Dm755 usr/bin/flash-player-properties "${pkgdir}/extra/usr/bin/flash-player-properties"
|
||||
for i in 16x16 22x22 24x24 32x32 48x48; do
|
||||
install -Dm644 usr/share/icons/hicolor/${i}/apps/flash-player-properties.png \
|
||||
"${pkgdir}/extra/usr/share/icons/hicolor/${i}/apps/flash-player-properties.png"
|
||||
done
|
||||
install -Dm644 usr/share/applications/flash-player-properties.desktop "${pkgdir}/extra/usr/share/applications/flash-player-properties.desktop"
|
||||
install -Dm644 usr/share/kde4/services/kcm_adobe_flash_player.desktop "${pkgdir}/extra/usr/share/kde4/services/kcm_adobe_flash_player.desktop"
|
||||
install -Dm644 "${_licensefile}" "${pkgdir}/extra/usr/share/licenses/${pkgname}/LICENSE.pdf"
|
||||
install -Dm644 ${srcdir}/mms.cfg "${pkgdir}/extra/etc/adobe/mms.cfg"
|
||||
}
|
14
flashplugin/flashplugin.install
Normal file
14
flashplugin/flashplugin.install
Normal file
@ -0,0 +1,14 @@
|
||||
post_install() {
|
||||
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
|
||||
echo " >> "
|
||||
echo " >> If you have an NVIDIA card that supports libvdpau or Broadcom Crystal HD chips,"
|
||||
echo " >> uncomment EnableLinuxHWVideoDecode=1 from /etc/adobe/mms.cfg."
|
||||
echo " >> If you run into problems, please contact nVidia or Broadcom along with your system config info / driver version."
|
||||
echo " >> "
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
if [ "$(vercmp $2 10.2.152.27-2)" -lt 0 ]; then
|
||||
post_install $1
|
||||
fi
|
||||
}
|
2
flashplugin/mms.cfg
Normal file
2
flashplugin/mms.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
#Hardware video decoding
|
||||
EnableLinuxHWVideoDecode=0
|
Loading…
Reference in New Issue
Block a user