From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- multilib/lib32-v4l-utils/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 multilib/lib32-v4l-utils/PKGBUILD (limited to 'multilib/lib32-v4l-utils') diff --git a/multilib/lib32-v4l-utils/PKGBUILD b/multilib/lib32-v4l-utils/PKGBUILD new file mode 100644 index 000000000..db5a9c594 --- /dev/null +++ b/multilib/lib32-v4l-utils/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 88966 2010-08-26 18:32:27Z thomas $ +# Maintainer: Jan "heftig" Steffens +_pkgbasename=v4l-utils +pkgname=lib32-$_pkgbasename +pkgver=0.8.3 +pkgrel=1 +pkgdesc="Userspace tools and conversion library for Video 4 Linux (32-bit)" +arch=('x86_64') +url="http://freshmeat.net/projects/libv4l" +provides=("lib32-libv4l=$pkgver") +replaces=('lib32-libv4l') +conflicts=('lib32-libv4l') +license=('LGPL') +makedepends=('gcc-multilib') +depends=('lib32-gcc-libs' $_pkgbasename) +source=(http://linuxtv.org/downloads/v4l-utils/${_pkgbasename}-${pkgver}.tar.bz2) +sha256sums=('525ebed7ef6e0f6a4bb68fe10403a3725eb1ec31a4c557c68256079b00e283b5') + +build() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules + + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + make PREFIX=/usr LIBDIR=/usr/lib32 +} + +package() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + make install PREFIX=/usr LIBDIR=/usr/lib32 DESTDIR="${pkgdir}/" + rm -rf "${pkgdir}"/{usr/{include,share,bin,sbin},etc} +} -- cgit v1.2.3-54-g00ecf