summaryrefslogtreecommitdiff
path: root/pcr/webp-npapi/PKGBUILD
blob: 6ea6f4d1b6761ce3a510c8227111e93118d4a7e1 (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
# Maintainer: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>

pkgname=webp-npapi
pkgver=1.0.0.0
pkgrel=1
pkgdesc="A WebP plugin for NPAPI-compliant browsers on GNU/Linux"
arch=('i686' 'x86_64')
url="https://code.google.com/p/webp-npapi-linux/"
license=('APACHE')
depends=('libwebp')
makedepends=('subversion' 'gtk2')
source=('webp-npapi::svn+https://webp-npapi-linux.googlecode.com/svn/trunk/'
        'ftp://gnu.mirror.iweb.com/icecat/4.0/icecat-4.0.tar.xz')
md5sums=('SKIP'
         '04548bfd70e6a66cd75cdb1f1fc81eb4')
options=('!makeflags')

prepare() {
  cd "$srcdir/webp-npapi"
  sed -i 's|[.][.][/][.][.][/]include[/]|../icecat-4.0/modules/plugin/base/public/|g;
         ' webp-npapi.h \
           CPlugin.h           
}

build() {
  cd "$srcdir/webp-npapi"
  make all
}

package() {
  cd "$srcdir/webp-npapi"
  install -d "$pkgdir/usr/lib/mozilla/plugins/"
  install -m644 *.so "$pkgdir/usr/lib/mozilla/plugins/"
}