pkgname=freshplayerplugin pkgver=0.3.1 pkgrel=1 pkgdesc='PPAPI-host NPAPI-plugin adapter.' arch=('x86_64') url='https://github.com/i-rinat/freshplayerplugin' license=('MIT') depends=('pepperflashplugin' 'pango' 'alsa-lib' 'freetype2' 'cairo' 'glib2' 'libpulse' 'libx11' 'libconfig' 'libevent' 'gtk2' 'libgl' 'openssl' 'ffmpeg' 'libxrandr' 'libxrender' 'libxcursor' 'v4l-utils' 'libva' 'jack2') makedepends=('cmake' 'ragel') conflicts=('freshplayerplugin-git' 'flashplugin' 'chromium-pepper-flash') source=("$url/archive/v$pkgver.tar.gz" 'freshwrapper.conf') backup=('etc/freshwrapper.conf') md5sums=('31c0ab73368edc97035dbe72223fa502' '7b683b98d1d4bcaa91ce7ee477025ac5') build() { cd $pkgname-$pkgver cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd $pkgname-$pkgver install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE for lib in libfreshwrapper-*.so; do install -Dm755 $lib "$pkgdir"/usr/lib/mozilla/plugins/$lib done #Install config files. install -Dm644 $srcdir/freshwrapper.conf "$pkgdir/etc/freshwrapper.conf" install -Dm644 $srcdir/$pkgname-$pkgver/data/freshwrapper.conf.example \ "$pkgdir/etc/freshwrapper.conf.example" }