From 55d1e19e71b453a0f47c599f281a2ad2644247d2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Dec 2011 23:15:23 +0000 Subject: Mon Dec 5 23:15:23 UTC 2011 --- multilib/nspluginwrapper/PKGBUILD | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'multilib/nspluginwrapper') diff --git a/multilib/nspluginwrapper/PKGBUILD b/multilib/nspluginwrapper/PKGBUILD index e9328f90f..7e9d8b5fe 100644 --- a/multilib/nspluginwrapper/PKGBUILD +++ b/multilib/nspluginwrapper/PKGBUILD @@ -1,21 +1,40 @@ -# $Id: PKGBUILD 50786 2011-07-01 07:38:37Z bluewind $ +# $Id: PKGBUILD 60061 2011-12-04 15:24:45Z bluewind $ # Maintainer: Thomas Bächler pkgname=nspluginwrapper pkgver=1.4.4 -pkgrel=1 +pkgrel=2 pkgdesc="Cross-platform NPAPI compatible plugin viewer" -arch=('x86_64') +arch=('i686' 'x86_64') url="http://nspluginwrapper.davidben.net/" license=('GPL') -depends=('curl' 'lib32-libxt' 'lib32-gcc-libs' 'gtk2' 'lib32-gtk2') +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) md5sums=('36f3e290fc4ce56f65ee695078961188') + +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" - ./configure --with-lib32=lib32 --with-lib64=lib + configure_args="" + if [[ $CARCH == x86_64 ]]; then + configure_args="$configure_args --with-lib32=lib32 --with-lib64=lib" + fi + + ./configure $configure_args make -j1 } -- cgit v1.2.3-54-g00ecf