diff options
author | root <root@rshg054.dnsready.net> | 2012-01-16 23:15:11 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-16 23:15:11 +0000 |
commit | 08a16f35d70b750b4db213a4bfcbacf5b3be4d74 (patch) | |
tree | 90c7b6f80849c63a69d3c46d0f04fe23ebf0c099 /multilib-testing/nspluginwrapper/PKGBUILD | |
parent | 0b31296d95d2e0f18abf69f30d0946e3a1f35672 (diff) |
Mon Jan 16 23:15:10 UTC 2012
Diffstat (limited to 'multilib-testing/nspluginwrapper/PKGBUILD')
-rw-r--r-- | multilib-testing/nspluginwrapper/PKGBUILD | 51 |
1 files changed, 51 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: |