# Tanım: Adobe Flash Player
# URL: http://www.macromedia.com
# Paketçi: milisarge Cihan_Alkan
# Gerekler: xorg-libxt gtk2 nss curl hicolor-icon-theme
# Grup: medya

isim=flashplayer
surum=31.0.0.153
devir=1
kaynak=(https://fpdownload.adobe.com/get/flashplayer/pdc/$surum/flash_player_ppapi_linux.x86_64.tar.gz
        https://fpdownload.adobe.com/get/flashplayer/pdc/$surum/flash_player_npapi_linux.x86_64.tar.gz)
      

derle() {

  install -Dm644 libflashplayer.so "$PKG/usr/lib/mozilla/plugins/libflashplayer.so"
  install -Dm644 -t "$PKG/usr/share/licenses/$isim" license.pdf LGPL/notice.txt

  install -D -t "$PKG/usr/bin" usr/bin/flash-player-properties
  cp -a usr/share/{applications,icons} "$PKG/usr/share/"

  install -Dm644 -t "$PKG/usr/lib/PepperFlash" manifest.json libpepflashplayer.so
  install -Dm644 -t "$PKG/usr/share/licenses/$isim" license.pdf LGPL/notice.txt
}
