summaryrefslogtreecommitdiff
path: root/multilib-testing/nspluginwrapper
diff options
context:
space:
mode:
Diffstat (limited to 'multilib-testing/nspluginwrapper')
-rw-r--r--multilib-testing/nspluginwrapper/PKGBUILD51
-rw-r--r--multilib-testing/nspluginwrapper/fix_missing_lib.patch11
-rw-r--r--multilib-testing/nspluginwrapper/install5
3 files changed, 67 insertions, 0 deletions
diff --git a/multilib-testing/nspluginwrapper/PKGBUILD b/multilib-testing/nspluginwrapper/PKGBUILD
new file mode 100644
index 000000000..7e88d8712
--- /dev/null
+++ b/multilib-testing/nspluginwrapper/PKGBUILD
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 62111 2012-01-16 01:55:23Z heftig $
+# Maintainer: Thomas Bächler <thomas@archlinux.org>
+pkgname=nspluginwrapper
+pkgver=1.4.4
+pkgrel=2.1
+pkgdesc="Cross-platform NPAPI compatible plugin viewer"
+arch=('i686' 'x86_64')
+url="http://nspluginwrapper.davidben.net/"
+license=('GPL')
+depends=(
+ 'curl'
+ 'libxt' 'lib32-libxt'
+ 'gcc-libs' 'lib32-gcc-libs'
+ 'gtk2' 'lib32-gtk2'
+)
+makedepends=('gcc-multilib')
+install="install"
+source=(http://nspluginwrapper.davidben.net/download/$pkgname-$pkgver.tar.gz
+ 'fix_missing_lib.patch')
+md5sums=('36f3e290fc4ce56f65ee695078961188'
+ 'd40ad2f55d9989e04e3ef0cf4326b1df')
+
+if [[ $CARCH == i686 ]]; then
+ # Strip lib32 etc. on i686
+ depends=(${depends[@]/*32-*/})
+ makedepends=(${makedepends[@]/*32-*/})
+ makedepends=(${makedepends[@]/*-multilib*/})
+ optdepends=(${optdepends[@]/*32-*/})
+fi
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -p0 -i "$srcdir/fix_missing_lib.patch"
+
+ configure_args=""
+ if [[ $CARCH == x86_64 ]]; then
+ configure_args="$configure_args --with-lib32=lib32 --with-lib64=lib"
+ fi
+
+ ./configure $configure_args
+ make -j1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make -j1 DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/multilib-testing/nspluginwrapper/fix_missing_lib.patch b/multilib-testing/nspluginwrapper/fix_missing_lib.patch
new file mode 100644
index 000000000..f239053f1
--- /dev/null
+++ b/multilib-testing/nspluginwrapper/fix_missing_lib.patch
@@ -0,0 +1,11 @@
+--- Makefile 2012-01-15 13:25:28.922775770 +0100
++++ Makefile.new 2012-01-15 13:25:09.185815643 +0100
+@@ -142,7 +142,7 @@
+ npplayer_LDFLAGS = $(LDFLAGS)
+ npplayer_LDFLAGS += $(libpthread_LDFLAGS)
+ npplayer_LIBS = $(GTK_LIBS) $(GLIB_LIBS) $(CURL_LIBS) $(X_LIBS)
+-npplayer_LIBS += $(libpthread_LIBS) $(libsocket_LIBS)
++npplayer_LIBS += $(libpthread_LIBS) $(libsocket_LIBS) -ldl
+
+ libnoxshm_LIBRARY = libnoxshm.so
+ libnoxshm_RAWSRCS = libnoxshm.c
diff --git a/multilib-testing/nspluginwrapper/install b/multilib-testing/nspluginwrapper/install
new file mode 100644
index 000000000..78e196fdb
--- /dev/null
+++ b/multilib-testing/nspluginwrapper/install
@@ -0,0 +1,5 @@
+post_upgrade() {
+ for i in `nspluginwrapper -l | grep -v "^ "`; do
+ /usr/bin/nspluginwrapper -u "$i"
+ done
+}