diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/nspluginwrapper/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/nspluginwrapper/PKGBUILD')
-rw-r--r-- | multilib/nspluginwrapper/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/multilib/nspluginwrapper/PKGBUILD b/multilib/nspluginwrapper/PKGBUILD new file mode 100644 index 000000000..250d70829 --- /dev/null +++ b/multilib/nspluginwrapper/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 26767 2010-09-15 23:06:22Z bluewind $ +# Maintainer: Thomas Bächler <thomas@archlinux.org> +pkgname=nspluginwrapper +pkgver=1.3.0 +pkgrel=4 +pkgdesc="Cross-platform NPAPI compatible plugin viewer" +arch=('x86_64') +url="http://freshmeat.net/projects/nspluginwrapper/" +license=('GPL') +depends=('curl' 'lib32-libxt' 'lib32-gcc-libs' 'gtk2' 'lib32-gtk2') +makedepends=('gcc-multilib') +source=(ftp://ftp.archlinux.org/other/nspluginwrapper/$pkgname-$pkgver.tar.gz + npw-viewer.c.patch + nspluginwrapper-20090625-fix-npident-array-sending.patch + nspluginwrapper-native-windows.patch) +sha256sums=('0af7e2ae4c6258d5c17addbcc4658b84c979860da843873f0d15d90ee9a8259d' + '4b216cca327ae76e6e2ab6dc6bbaf3efe1123c63a09b0e7e45c964531fcbdeb0' + '8bb55b845017b60912c62c4abadc50a3f0397ddf470599b8453b97d9e69f8cd5' + '3796b66f53448f4668e70aec97a3d74db2b2fcd308b36f87373405547cae38b1') +build() { + cd "$srcdir/$pkgname-$pkgver" + + # Fix build + patch -p1 -i "$srcdir/npw-viewer.c.patch" + # See http://web.archiveorange.com/archive/v/tptsHOJYbGKIfNFz9xHz + patch -p0 -i "$srcdir/nspluginwrapper-20090625-fix-npident-array-sending.patch" + # Patch taken from the openSuSE src.rpm + patch -p0 -i "$srcdir/nspluginwrapper-native-windows.patch" + + ./configure --with-lib32=lib32 --with-lib64=lib + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make -j1 DESTDIR="$pkgdir/" install + mkdir -p "$pkgdir"/usr/lib/mozilla/plugins/ + ln -s /usr/lib/nspluginwrapper/x86_64/linux/npwrapper.so "$pkgdir"/usr/lib/mozilla/plugins/ +} + +# vim:set ts=2 sw=2 et: |