summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/flashplugin/PKGBUILD
blob: 1e68f40c34c650fe03bbdff60fec3b9c63037176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $Id: PKGBUILD 21951 2008-12-18 13:25:19Z thomas $

pkgname=flashplugin
_licensefile='Reader_Player_WWEULA-Combined-20060724_1430.pdf'
if [ "${CARCH}" = 'i686' ]; then
  pkgver=10.0.15.3
  pkgrel=1
  source=('http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz'
          "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
  md5sums=('afab0b40b0ae11445e2e90a4a9224a8a'
           '844cea6c9afc13d9e27f28ce1a6e20f3')
elif [ "${CARCH}" = 'x86_64' ]; then
  pkgver=10.0.d21.1
  pkgrel=1
  source=("http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${pkgver}.linux-x86_64.so.tar.gz"
          "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
  md5sums=('c165af9d4e324bfaf6d1cfbdbe959fbb'
           '844cea6c9afc13d9e27f28ce1a6e20f3')
else
  error Unknown architecture.
  exit 1
fi
pkgdesc='Adobe Flash Player'
url='http://www.adobe.com/go/getflash'
arch=('i686' 'x86_64')
depends=('mozilla-common' 'libxt' 'gtk2' 'nss' 'curl')
replaces=('flashplugin-beta')
provides=('flashplayer')
license=('custom')

build() {
  install -d -m755 ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
  if [ "${CARCH}" = 'i686' ]; then
    install -m755 ${srcdir}/install_flash_player_10_linux/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
  elif [ "${CARCH}" = 'x86_64' ]; then
    install -m755 ${srcdir}/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
  fi
  install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
  install -m644 "${_licensefile}" ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}