2015-02-02 01:12:36 +08:00
|
|
|
pkgname=freshplayerplugin
|
2017-05-31 09:06:42 +08:00
|
|
|
pkgver=0.3.7
|
|
|
|
pkgrel=1
|
2015-02-02 01:12:36 +08:00
|
|
|
pkgdesc='PPAPI-host NPAPI-plugin adapter.'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://github.com/i-rinat/freshplayerplugin'
|
|
|
|
license=('MIT')
|
2015-06-16 20:04:30 +08:00
|
|
|
depends=('pepperflashplugin' 'pango' 'alsa-lib' 'freetype2' 'cairo' 'glib2' 'libpulse'
|
2016-10-07 08:56:51 +08:00
|
|
|
'libx11' 'libevent' 'gtk3' 'libgl' 'openssl' 'ffmpeg' 'libxrandr'
|
2016-10-07 07:36:35 +08:00
|
|
|
'libxrender' 'libxcursor' 'v4l-utils' 'libva' 'jack2' 'icu')
|
2015-02-02 01:12:36 +08:00
|
|
|
makedepends=('cmake' 'ragel')
|
|
|
|
conflicts=('freshplayerplugin-git' 'flashplugin' 'chromium-pepper-flash')
|
2015-04-28 18:47:00 +08:00
|
|
|
source=("$url/archive/v$pkgver.tar.gz"
|
|
|
|
'freshwrapper.conf')
|
2015-02-02 01:12:36 +08:00
|
|
|
backup=('etc/freshwrapper.conf')
|
2017-05-31 09:06:42 +08:00
|
|
|
md5sums=('9076ce1e61c9ec12234306b62afff9ce'
|
2015-12-31 14:47:19 +08:00
|
|
|
'f3575ad86d10bb361c3530027cacc84e')
|
2015-02-02 01:12:36 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2015-04-27 07:06:17 +08:00
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2015-02-02 01:12:36 +08:00
|
|
|
|
|
|
|
for lib in libfreshwrapper-*.so; do
|
|
|
|
install -Dm755 $lib "$pkgdir"/usr/lib/mozilla/plugins/$lib
|
|
|
|
done
|
2015-04-28 18:47:00 +08:00
|
|
|
|
|
|
|
#Install config files.
|
|
|
|
install -Dm644 $srcdir/freshwrapper.conf "$pkgdir/etc/freshwrapper.conf"
|
2015-04-27 23:23:17 +08:00
|
|
|
install -Dm644 $srcdir/$pkgname-$pkgver/data/freshwrapper.conf.example \
|
2015-04-28 18:47:00 +08:00
|
|
|
"$pkgdir/etc/freshwrapper.conf.example"
|
2015-02-02 01:12:36 +08:00
|
|
|
}
|