diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -7,13 +7,13 @@ # Contributor: zman0900 <zman0900@gmail.com> pkgname=freshplayerplugin-git -pkgver=0.3.6.r2.gf550545 +pkgver=0.3.11.r4.g0f46d4a pkgrel=1 pkgdesc='PPAPI-host NPAPI-plugin adapter.' arch=('i686' 'x86_64') url='https://github.com/i-rinat/freshplayerplugin' license=('MIT') -depends=('pango' 'alsa-lib' 'freetype2' 'libevent' 'libgl' 'v4l-utils' 'ffmpeg' 'icu' 'libxrandr' 'libxcursor' 'pepper-flash') +depends=('pango' 'alsa-lib' 'freetype2' 'libevent' 'libgl' 'v4l-utils' 'icu' 'libxrandr' 'libxcursor' 'pepper-flash') makedepends=('cmake' 'ragel' 'git') conflicts=('freshplayerplugin') source=("${pkgname}::git+${url}") @@ -24,16 +24,20 @@ pkgver() { git describe --tags | sed -e 's:v::' -e 's:-:.r:' -e 's:-:.:g' } +prepare() { + mkdir -p ${pkgname}/build +} + build() { - cd "$pkgname" - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + cd ${pkgname}/build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DWITH_HWDEC=OFF .. make } package() { - cd "$pkgname" + cd ${pkgname}/build make DESTDIR="${pkgdir}" install - install -Dm644 data/freshwrapper.conf.example "${pkgdir}/usr/share/${pkgname}/freshwrapper.conf.example" - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 ../data/freshwrapper.conf.example "${pkgdir}/usr/share/${pkgname}/freshwrapper.conf.example" + install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |