diff options
author | GordonGR | 2015-07-24 17:07:26 +0300 |
---|---|---|
committer | GordonGR | 2015-07-24 17:07:26 +0300 |
commit | 5ee9b15a41fc6ce75ee3c962e3b966c8cf153872 (patch) | |
tree | 07754b57f16445126c342b5a4140d6bbd2de1cef | |
download | aur-5ee9b15a41fc6ce75ee3c962e3b966c8cf153872.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | sdl-config-32.patch | 18 |
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0c3fdc2b2a3d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = lib32-libdc1394 + pkgdesc = High level programming interface to control IEEE 1394 based cameras (32 bit) + pkgver = 2.2.3 + pkgrel = 1 + url = http://sourceforge.net/projects/libdc1394/ + arch = x86_64 + license = LGPL + makedepends = gcc-multilib + depends = lib32-libraw1394 + depends = lib32-libusb + depends = libdc1394 + options = !emptydirs + source = http://downloads.sourceforge.net/libdc1394/libdc1394-2.2.3.tar.gz + source = sdl-config-32.patch + md5sums = 443d0638e51054ff37fb8e551e07672a + md5sums = c17d80af8323d82fbc9a4993b758d4ab + +pkgname = lib32-libdc1394 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cef5d269be8f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: GordonGR <ntheo1979@gmail.com> +# josephgbr <rafael.f.f1@gmail.com> + +_pkgname=libdc1394 +pkgname=lib32-${_pkgname} +pkgver=2.2.3 +pkgrel=1 +pkgdesc="High level programming interface to control IEEE 1394 based cameras (32 bit)" +arch=('x86_64') +license=('LGPL') +url="http://sourceforge.net/projects/libdc1394/" +depends=('lib32-libraw1394' 'lib32-libusb' "${_pkgname}") +makedepends=('gcc-multilib') +options=('!emptydirs') +source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" + 'sdl-config-32.patch') +md5sums=('443d0638e51054ff37fb8e551e07672a' + 'c17d80af8323d82fbc9a4993b758d4ab') + +prepare() { + +# This might be redundant and overkill +cd ${_pkgname}-${pkgver} +patch -Np2 < ../sdl-config-32.patch + +} + +build() { +export CC='gcc -m32' +export CXX='g++ -m32' +export LDFLAGS='-m32' +#SDL_CFLAGS = -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT +export SDL_CONFIG='/usr/bin/sdl-config-32' +export SDL_LIBS='-L/usr/lib32 -lSDL -lpthread' + +export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' +cd ${_pkgname}-${pkgver} +./configure --prefix=/usr --libdir=/usr/lib32 +make +} + +package() { +cd ${_pkgname}-${pkgver} +make DESTDIR="${pkgdir}" install +rm -rf "${pkgdir}/usr"/{bin,include,share} +} diff --git a/sdl-config-32.patch b/sdl-config-32.patch new file mode 100644 index 000000000000..d743e7c3ecc2 --- /dev/null +++ b/sdl-config-32.patch @@ -0,0 +1,18 @@ +--- src/libdc1394-2.2.1/configure 2013-01-28 11:47:43.000000000 +0900 ++++ src/libdc1394-2.2.1/configure 2015-01-12 02:10:24.646720866 +0900 +@@ -13322,13 +13322,13 @@ + if test x$sdl_exec_prefix != x ; then + sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" + if test x${SDL_CONFIG+set} != xset ; then +- SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config ++ SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config-32 + fi + fi + if test x$sdl_prefix != x ; then + sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then +- SDL_CONFIG=$sdl_prefix/bin/sdl-config ++ SDL_CONFIG=$sdl_prefix/bin/sdl-config-32 + fi + fi + |