From 352612295d6ea16be72752dd3219990c8513d6fa Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Thu, 26 Jan 2012 04:30:10 +0000 Subject: [PATCH] updated on Thu Jan 26 04:30:10 UTC 2012 --- aspectc++/PKGBUILD | 71 ++++++++ easy-slow-down-manager-svn/PKGBUILD | 4 +- .../easy-slow-down-manager.install | 2 +- fet/PKGBUILD | 6 +- gsas-expgui-svn/PKGBUILD | 14 +- gsas-expgui-svn/bootstrap.patch | 81 ++++----- lib32-enca/PKGBUILD | 38 ++++ lib32-faad2/PKGBUILD | 28 +-- lib32-fftw/PKGBUILD | 58 +++++++ lib32-fribidi/PKGBUILD | 31 ++++ lib32-gstreamer0.10-bad/PKGBUILD | 90 +++++----- lib32-gstreamer0.10-bad/mjpeg-2.0.patch | 28 +++ lib32-libass/PKGBUILD | 33 ++++ lib32-libcdaudio/01-cddb-bufferoverflow.patch | 15 ++ lib32-libcdaudio/02-cddb-bufferoverflow.patch | 15 ++ lib32-libcdaudio/PKGBUILD | 37 ++++ lib32-libdc1394/PKGBUILD | 42 +++++ lib32-libdc1394/rename-usb_init.patch | 53 ++++++ lib32-libdc1394/videodev-compile-fix.patch | 41 +++++ lib32-libdca/PKGBUILD | 32 ++++ lib32-libdvdcss/PKGBUILD | 31 ++++ lib32-libdvdnav/PKGBUILD | 31 ++++ lib32-libdvdread/PKGBUILD | 31 ++++ lib32-liblrdf/PKGBUILD | 41 +++++ lib32-liblrdf/md5.patch | 18 ++ lib32-liblrdf/pkgconfig-raptor.patch | 9 + lib32-liblrdf/raptor2.diff | 193 +++++++++++++++++++++ lib32-libmms/PKGBUILD | 31 ++++ lib32-libmodplug/PKGBUILD | 33 ++++ lib32-libmpcdec/PKGBUILD | 33 ++++ lib32-libofa/PKGBUILD | 48 +++++ lib32-libofa/fix_ftbfs.diff | 13 ++ lib32-libofa/gcc-4.patch | 39 +++++ lib32-libofa/gcc4.3.patch | 35 ++++ lib32-libofa/gcc4.5.patch | 10 ++ lib32-libraw1394/PKGBUILD | 32 ++++ lib32-musicbrainz/PKGBUILD | 39 +++++ lib32-musicbrainz/gcc4.3.patch | 57 ++++++ lib32-neon/PKGBUILD | 40 +++++ lib32-raptor/PKGBUILD | 34 ++++ lib32-rtmpdump/PKGBUILD | 34 ++++ lib32-schroedinger/PKGBUILD | 34 ++++ libcec-git/PKGBUILD | 47 +++++ pianobooster/PKGBUILD | 8 +- python2-clint/PKGBUILD | 21 +++ rho/PKGBUILD | 4 +- tagainijisho/PKGBUILD | 4 +- utvideo/PKGBUILD | 8 +- utvideo/add-pthread.patch | 10 -- 49 files changed, 1547 insertions(+), 140 deletions(-) create mode 100644 aspectc++/PKGBUILD rewrite gsas-expgui-svn/bootstrap.patch (100%) create mode 100644 lib32-enca/PKGBUILD create mode 100644 lib32-fftw/PKGBUILD create mode 100644 lib32-fribidi/PKGBUILD rewrite lib32-gstreamer0.10-bad/PKGBUILD (99%) create mode 100644 lib32-gstreamer0.10-bad/mjpeg-2.0.patch create mode 100644 lib32-libass/PKGBUILD create mode 100644 lib32-libcdaudio/01-cddb-bufferoverflow.patch create mode 100644 lib32-libcdaudio/02-cddb-bufferoverflow.patch create mode 100644 lib32-libcdaudio/PKGBUILD create mode 100644 lib32-libdc1394/PKGBUILD create mode 100644 lib32-libdc1394/rename-usb_init.patch create mode 100644 lib32-libdc1394/videodev-compile-fix.patch create mode 100644 lib32-libdca/PKGBUILD create mode 100644 lib32-libdvdcss/PKGBUILD create mode 100644 lib32-libdvdnav/PKGBUILD create mode 100644 lib32-libdvdread/PKGBUILD create mode 100644 lib32-liblrdf/PKGBUILD create mode 100644 lib32-liblrdf/md5.patch create mode 100644 lib32-liblrdf/pkgconfig-raptor.patch create mode 100644 lib32-liblrdf/raptor2.diff create mode 100644 lib32-libmms/PKGBUILD create mode 100644 lib32-libmodplug/PKGBUILD create mode 100644 lib32-libmpcdec/PKGBUILD create mode 100644 lib32-libofa/PKGBUILD create mode 100644 lib32-libofa/fix_ftbfs.diff create mode 100644 lib32-libofa/gcc-4.patch create mode 100644 lib32-libofa/gcc4.3.patch create mode 100644 lib32-libofa/gcc4.5.patch create mode 100644 lib32-libraw1394/PKGBUILD create mode 100644 lib32-musicbrainz/PKGBUILD create mode 100644 lib32-musicbrainz/gcc4.3.patch create mode 100644 lib32-neon/PKGBUILD create mode 100644 lib32-raptor/PKGBUILD create mode 100644 lib32-rtmpdump/PKGBUILD create mode 100644 lib32-schroedinger/PKGBUILD create mode 100644 libcec-git/PKGBUILD create mode 100644 python2-clint/PKGBUILD delete mode 100644 utvideo/add-pthread.patch diff --git a/aspectc++/PKGBUILD b/aspectc++/PKGBUILD new file mode 100644 index 000000000..45d539821 --- /dev/null +++ b/aspectc++/PKGBUILD @@ -0,0 +1,71 @@ + +PACKAGER="Zygmunt Ptak " + +unset CFLAGS +unset CXXFLAGS +unset LDFLAGS +unset MAKEFLAGS + +#CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" +#CXXFLAGS=$CFLAGS +#LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu" +#MAKEFLAGS="-j2" + + +pkgname=aspectc++ +pkgver=1.0 +pkgrel=1 +pkgdesc="It is a set of C++ language extensions to facilitate aspect-oriented programming with C/C++" +arch=("i686" "x86_64") +url="http://www.aspectc.org/" +license=("GPL") + +depends=("libxml2") +makedepends=("") +provides=("") +conflicts=("") + +options=("!emptydirs") + +source=( +"ftp://akut.aspectc.org/releases/$pkgver/ac-$pkgver.tar.gz" +) + +md5sums=("5d2274a1a8c774589ea9acf9beb4717f") + +build() +{ + cd aspectc++ + cd Puma + make + + cd ../AspectC++ + make SHARED=1 + + cd ../Ag++ + make +} + +package() +{ + cd aspectc++ + cd Puma + make install PREFIX=$pkgdir/usr + + cd ../AspectC++ + bindir=$pkgdir/usr/bin + mkdir -p $bindir + cp ./bin/linux-release/ac++ $bindir/. + docdir=$pkgdir/usr/share/doc/AspectC++ + mkdir -p $docdir + cp -R doc/* $docdir/. + cp -R examples $docdir/. + + cd ../Ag++ + cp ./bin/linux-release/ag++ $pkgdir/usr/bin/. + docdir=$pkgdir/usr/share/doc/Ag++ + mkdir -p $docdir + cp -R doc/* $docdir/. +} + + diff --git a/easy-slow-down-manager-svn/PKGBUILD b/easy-slow-down-manager-svn/PKGBUILD index e71223548..8c7227586 100644 --- a/easy-slow-down-manager-svn/PKGBUILD +++ b/easy-slow-down-manager-svn/PKGBUILD @@ -3,7 +3,7 @@ pkgname=easy-slow-down-manager-svn pkgver=33 -pkgrel=4 +pkgrel=5 pkgdesc="Fan, brightness and WiFi controls for Samsung laptops" arch=('i686' 'x86_64') url="http://code.google.com/p/easy-slow-down-manager/" @@ -17,7 +17,7 @@ install=easy-slow-down-manager.install _svntrunk=http://easy-slow-down-manager.googlecode.com/svn/trunk/ _svnmod=easy-slow-down-manager-read-only -_extramodules="extramodules-3.2-ARCH" +_extramodules="extramodules-`uname -r | cut -d. -f-2`-ARCH" build() { cd "$srcdir" diff --git a/easy-slow-down-manager-svn/easy-slow-down-manager.install b/easy-slow-down-manager-svn/easy-slow-down-manager.install index 36a5512a5..6c488d10d 100644 --- a/easy-slow-down-manager-svn/easy-slow-down-manager.install +++ b/easy-slow-down-manager-svn/easy-slow-down-manager.install @@ -1,5 +1,5 @@ post_install() { - echo "Updating module dependencies" + echo "Updating module dependencies (depmod -a)" depmod -a } diff --git a/fet/PKGBUILD b/fet/PKGBUILD index 2cdc31019..b6c1768ad 100644 --- a/fet/PKGBUILD +++ b/fet/PKGBUILD @@ -7,7 +7,7 @@ true && pkgname=('fet' 'fet-extra' 'fet-hu' 'fet-id' 'fet-it' 'fet-lt' 'fet-mk' 'fet-ms' 'fet-nl' 'fet-pl' 'fet-pt-br' 'fet-ro' 'fet-ru' 'fet-si' 'fet-sk' 'fet-sr' 'fet-tr' 'fet-uk' 'fet-vi') pkgver=5.16.0 -pkgrel=2 +pkgrel=3 arch=(any) url="http://lalescu.ro/liviu/fet/" license=('GPL') @@ -17,10 +17,6 @@ md5sums=('3db1c0b365cc4878388c24e794dcc96b' '8d951b500de581eb660472aa56ba6ba3') build() { - return 0 -} - -build_fet() { cd "$srcdir/$pkgname-$pkgver" qmake diff --git a/gsas-expgui-svn/PKGBUILD b/gsas-expgui-svn/PKGBUILD index 088d9ad24..3ffed7d4a 100644 --- a/gsas-expgui-svn/PKGBUILD +++ b/gsas-expgui-svn/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Zachary A. Jones pkgname=gsas-expgui-svn -pkgver=1178 -pkgrel=1 +pkgver=1187 +pkgrel=2 pkgdesc="General Structure Analysis System - refinement for powder diffraction patterns" arch=(i686 x86_64) url="http://www.ccp14.ac.uk/solution/gsas/" @@ -17,9 +17,8 @@ source=(http://11bm.xor.aps.anl.gov/downloads/gsas/svnload/gsassvnlinux.tar.gz md5sums=('23a38547be86cc1ac318b62898d39d42' 'd1de894759785072e29add004b6d5d6c' '6bf9e5e1a0b67267658d63b5537843e5' - '0587dd70d8aae54afd625a6509e34144' + '37d1b1396b6c75b8573ec79ad075a302' '4c8e94cd085eae5c6557331514483b78') - build() { cd "$pkgdir" @@ -27,16 +26,17 @@ build() mkdir -p usr/share/licenses/gsas-expgui-svn/ cd opt/gsas bsdtar -x -f "$srcdir/gsassvnlinux.tar.gz" - patch bootstrap.py < $srcdir/bootstrap.patch + patch "$srcdir/bootstrap.py" < "$srcdir/bootstrap.patch" + cp "$srcdir/bootstrap.py" "$pkgdir/opt/gsas/bootstrap.py" python2 bootstrap.py cd "$pkgdir" - dos2unix $pkgdir/opt/gsas/expgui/expgui - chmod +x $pkgdir/opt/gsas/expgui/expgui install -m 644 -D "$srcdir/license.txt" usr/share/licenses/gsas-expgui-svn/LICENSE mkdir -p usr/share/applications/ install -m 644 -D "$srcdir/GSAS.desktop" usr/share/applications/GSAS.desktop install -m 644 -D "$srcdir/EXPGUI.desktop" usr/share/applications/EXPGUI.desktop mkdir -p usr/bin + dos2unix "$pkgdir/opt/gsas/expgui/expgui" + chmod +x "$pkgdir/opt/gsas/expgui/expgui" ln -s /opt/gsas/GSAS usr/bin/GSAS ln -s /opt/gsas/expgui/expgui usr/bin/expgui } diff --git a/gsas-expgui-svn/bootstrap.patch b/gsas-expgui-svn/bootstrap.patch dissimilarity index 100% index 4ce26087f..915632bee 100644 --- a/gsas-expgui-svn/bootstrap.patch +++ b/gsas-expgui-svn/bootstrap.patch @@ -1,40 +1,41 @@ ---- bootstrap.py 2011-10-18 12:20:42.084632296 -0500 -+++ bootstrap.py 2011-10-18 12:21:52.198363940 -0500 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python2 - import os, stat, sys, platform, subprocess - home = 'https://subversion.xor.aps.anl.gov/EXPGUI/' - -@@ -49,31 +49,3 @@ - print "" - p = subprocess.call(cmd) - --if sys.platform.startswith('linux'): -- os.chmod(gsaspath + "/expgui/expgui", -- stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) -- if os.path.exists(os.path.expanduser('~/Desktop/')): -- open(os.path.expanduser('~/Desktop/EXPGUI.desktop'),'w').write(''' --[Desktop Entry] --Encoding=UTF-8 --Version=1.0 --Type=Application --Terminal=false --Exec=%s/expgui/expgui --Name=EXPGUI --Icon=%s/EXPGUI.png --''' % (gsaspath,gsaspath)) -- os.chmod(os.path.expanduser('~/Desktop/EXPGUI.desktop'), -- stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) -- open(os.path.expanduser('~/Desktop/GSAS.desktop'),'w').write(''' --[Desktop Entry] --Encoding=UTF-8 --Version=1.0 --Type=Application --Terminal=true --Exec=%s/GSAS --Name=GSAS --Icon=%s/GSAS.png --''' % (gsaspath,gsaspath)) -- os.chmod(os.path.expanduser('~/Desktop/GSAS.desktop'), -- stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) +1c1 +< #!/usr/bin/env python +--- +> #!/usr/bin/env python2 +40,42c40,42 +< (['svn', 'switch', home+ 'trunk/', gsaspath+'/expgui'],'loading EXPGUI'), +< (['svn', 'switch', home+ 'gsas/' + repos+ '/exe/', gsaspath+'/exe'],'loading GSAS programs'), +< (['svn', 'switch', home+ 'gsas/' + repos+ '/pgl/', gsaspath+'/pgl'],'loading PGPLOT files'), +--- +> (['svn', 'switch', home+ 'trunk/', gsaspath+'/expgui','--ignore-ancestry'],'loading EXPGUI'), +> (['svn', 'switch', home+ 'gsas/' + repos+ '/exe/', gsaspath+'/exe','--ignore-ancestry'],'loading GSAS programs'), +> (['svn', 'switch', home+ 'gsas/' + repos+ '/pgl/', gsaspath+'/pgl','--ignore-ancestry'],'loading PGPLOT files'), +52,79d51 +< if sys.platform.startswith('linux'): +< os.chmod(gsaspath + "/expgui/expgui", +< stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) +< if os.path.exists(os.path.expanduser('~/Desktop/')): +< open(os.path.expanduser('~/Desktop/EXPGUI.desktop'),'w').write(''' +< [Desktop Entry] +< Encoding=UTF-8 +< Version=1.0 +< Type=Application +< Terminal=false +< Exec=%s/expgui/expgui +< Name=EXPGUI +< Icon=%s/EXPGUI.png +< ''' % (gsaspath,gsaspath)) +< os.chmod(os.path.expanduser('~/Desktop/EXPGUI.desktop'), +< stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) +< open(os.path.expanduser('~/Desktop/GSAS.desktop'),'w').write(''' +< [Desktop Entry] +< Encoding=UTF-8 +< Version=1.0 +< Type=Application +< Terminal=true +< Exec=%s/GSAS +< Name=GSAS +< Icon=%s/GSAS.png +< ''' % (gsaspath,gsaspath)) +< os.chmod(os.path.expanduser('~/Desktop/GSAS.desktop'), +< stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) diff --git a/lib32-enca/PKGBUILD b/lib32-enca/PKGBUILD new file mode 100644 index 000000000..0e539cdd0 --- /dev/null +++ b/lib32-enca/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: jospehgbr + +_pkgbase=enca +pkgname=lib32-${_pkgbase} +pkgver=1.13 +pkgrel=1 +pkgdesc="Charset analyser and converter (32 bit)" +arch=('x86_64') +url="http://freshmeat.net/projects/enca/" +options=('!libtool') +license=('GPL') +depends=('recode' "${_pkgbase}") +makedepends=('gcc-multilib' 'bash') +source=("http://dl.cihar.com/${_pkgbase}/${_pkgbase}-${pkgver}.tar.bz2") +md5sums=('762bead5d9a0a5e55024e1102baaa89d') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + + ./configure --prefix=/usr \ + --libexecdir=/usr/lib32 \ + --mandir=/usr/share/man \ + --with-librecode=/usr \ + --enable-external \ + --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/{bin,include,share} +} diff --git a/lib32-faad2/PKGBUILD b/lib32-faad2/PKGBUILD index a93697e54..418b159fe 100644 --- a/lib32-faad2/PKGBUILD +++ b/lib32-faad2/PKGBUILD @@ -1,17 +1,18 @@ # Maintainer: josephgbr +# Contributor: escoand -_pkgbasename=faad2 -pkgname=lib32-$_pkgbasename +_pkgbase=faad2 +pkgname=lib32-${_pkgbase} pkgver=2.7 pkgrel=4 -pkgdesc="ISO AAC audio decoder (32 bit, library only)" +pkgdesc="ISO AAC audio decoder (32 bit)" arch=('x86_64') url="http://www.audiocoding.com/" license=('GPL' 'custom:FAAD2') -depends=('lib32-glibc' "$_pkgbasename>=$pkgver") +depends=('lib32-glibc' ${_pkgbase}) makedepends=('gcc-multilib') options=('!libtool' '!makeflags') -source=("http://downloads.sourceforge.net/sourceforge/faac/${_pkgbasename}-${pkgver}.tar.bz2" +source=("http://downloads.sourceforge.net/sourceforge/faac/${_pkgbase}-${pkgver}.tar.bz2" 'LICENSE') md5sums=('4c332fa23febc0e4648064685a3d4332' 'ec95f38142e14fb46c849503897a37a0') @@ -19,17 +20,20 @@ sha1sums=('b0e80481d27ae9faf9e46c8c8dfb617a0adb91b5' '00edd9b30d8d5098b5e91c03c595d96a3bbe56fd') build() { - cd ${srcdir}/${_pkgbasename}-${pkgver} + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' - ./configure --prefix=/usr --libdir=/usr/lib32 CC='gcc -m32' CXX='g++ -m32' + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 make CFLAGS="${CFLAGS} -fPIC" } package() { - cd ${srcdir}/${_pkgbasename}-${pkgver} + cd "${srcdir}/${_pkgbase}-${pkgver}" - make DESTDIR=${pkgdir} install - rm -rf ${pkgdir}/usr/{bin,include,share} - install -Dm644 ${srcdir}/LICENSE \ - ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,share} + install -Dm644 "${srcdir}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/lib32-fftw/PKGBUILD b/lib32-fftw/PKGBUILD new file mode 100644 index 000000000..17f6ca4f6 --- /dev/null +++ b/lib32-fftw/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: josephgbr + +_pkgbase=fftw +pkgname=lib32-${_pkgbase} +pkgver=3.3 +pkgrel=1 +pkgdesc="A library for computing the discrete Fourier transform (DFT) (32 bit)" +arch=('x86_64') +license=('GPL2') +url="http://www.fftw.org/" +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('gcc-fortran-multilib') +options=(!libtool) +source=(http://www.fftw.org/${_pkgbase}-${pkgver}.tar.gz) +sha1sums=('e44493ba4babeacba184568e727876d9aed44205') + +# notes: +# http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69 +# http://www.fftw.org/faq/section2.html#singleprec +# http://www.fftw.org/fftw3_doc/Precision.html#Precision + + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + + # use upstream default CFLAGS while keeping our -march/-mtune + CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math" + + CONFIGURE="./configure F77=gfortran --prefix=/usr \ + --enable-shared --enable-threads --libdir=/usr/lib32" + + # build & install double precision + $CONFIGURE --enable-sse2 + make + make DESTDIR="${pkgdir}" install + make clean + +# Disabled single and long double precision - this is a difference from the +# original 'fftw'. This can be activated anytime by uncommenting the list below, +# but be warned that compilation time will drastically increase. -- josephgbr + + ## build & install long double precission + #$CONFIGURE --enable-long-double + #make + #make DESTDIR="${pkgdir}" install + #make clean + + ## build & install single precision + #$CONFIGURE --enable-float --enable-sse + #make + #make DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}/usr"/{bin,include,share} +} diff --git a/lib32-fribidi/PKGBUILD b/lib32-fribidi/PKGBUILD new file mode 100644 index 000000000..37bea0cab --- /dev/null +++ b/lib32-fribidi/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: jospehgbr + +_pkgbase=fribidi +pkgname=lib32-${_pkgbase} +pkgver=0.19.2 +pkgrel=1 +pkgdesc="A Free Implementation of the Unicode Bidirectional Algorithm (32 bit)" +arch=('x86_64') +license=('LGPL') +url="http://fribidi.org" +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool') +source=("http://fribidi.org/download/${_pkgbase}-${pkgver}.tar.gz") +md5sums=('626db17d2d99b43615ad9d12500f568a') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/{bin,include,share} +} diff --git a/lib32-gstreamer0.10-bad/PKGBUILD b/lib32-gstreamer0.10-bad/PKGBUILD dissimilarity index 99% index 771452db9..3e122de9c 100644 --- a/lib32-gstreamer0.10-bad/PKGBUILD +++ b/lib32-gstreamer0.10-bad/PKGBUILD @@ -1,49 +1,41 @@ - # Maintainer: ilikenwf/Matt Parnell - - _pkgbasename=gstreamer0.10-bad - pkgname=lib32-${_pkgbasename} - pkgver=`pacman -Q|grep ${_pkgbasename}|sed -e 's/gstreamer0\.10\-bad\ //;s/\-.*//'` - pkgrel=`pacman -Q|grep ${_pkgbasename}|sed -e 's/gstreamer0\.10\-bad\ //;s/[0-9]\.[0-9][0-9]\.[0-9][0-9]//;s/\-//'|head -n 1` - pkgdesc="GStreamer Multimedia Framework" - arch=('x86_64') - license=('LGPL') - url="http://gstreamer.freedesktop.org/" - depends=("${_pkgbasename}" 'lib32-gstreamer0.10-base') - makedepends=('wget' 'grep' 'sed') - options=('!libtool') - # we'll dynamically grab the md5, so there's no reason to have source and md5sums arrays below - - build() { - if [ ! -d /tmp/arch32db ]; then - # put the 32 bit extra database in /tmp in case we build any other automatic lib32 packages - mkdir /tmp/arch32db - fi - - cd /tmp/arch32db - - if [ ! -f /tmp/arch32db/extra.db.tar.gz ]; then - wget ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz /tmp/arch32db - fi - - tar -C /tmp/arch32db -zxf /tmp/arch32db/extra.db.tar.gz ${_pkgbasename}-${pkgver}-${pkgrel} - dbmd5=`cat /tmp/arch32db/${_pkgbasename}-${pkgver}-${pkgrel}/desc|grep -A 1 \%MD5SUM\%|sed -e 's/\%MD5SUM\%//'|tail -n -1` - - cd ${srcdir} - - if [ ! -f ${_pkgbasename}-${pkgver}-${pkgrel}-i686.pkg.tar.xz ]; then - wget ftp://ftp.archlinux.org/extra/os/i686/${_pkgbasename}-${pkgver}-${pkgrel}-i686.pkg.tar.xz - fi - - md5=`md5sum ${_pkgbasename}-${pkgver}-${pkgrel}-i686.pkg.tar.xz` - - - if [ "${dbmd5/ /}"="${md5/ /}" ]; then - # ok, so the file is good, we'll install/setup - /bin/tar xf ${_pkgbasename}-${pkgver}-${pkgrel}-i686.pkg.tar.xz - install -dm755 $pkgdir/usr/lib32/gstreamer-0.10 || return 1 - cp -R $srcdir/usr/lib/gstreamer-0.10/*.so* $pkgdir/usr/lib32/gstreamer-0.10 || return 1 - else - return 1 - fi - } - +# Maintainer: josephgbr + +_pkgbase=gstreamer0.10-bad +pkgname=lib32-${_pkgbase} +pkgver=0.10.22 +pkgrel=1 +arch=('x86_64') +license=('LGPL' 'GPL') +pkgdesc="GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad) (32 bit)" +depends=('lib32-gstreamer0.10-base>=0.10.34' "${_pkgbase}") +makedepends=('gcc-multilib' 'lib32-libvdpau' 'lib32-libass' 'lib32-libcdaudio' 'lib32-curl' 'lib32-libdc1394' 'lib32-libdvdnav' 'lib32-libmms' 'lib32-liblrdf' 'lib32-libmpcdec' 'lib32-libmodplug' 'lib32-musicbrainz' 'lib32-neon' 'lib32-libofa' 'lib32-librsvg' 'lib32-schroedinger' 'lib32-soundtouch' 'lib32-rtmpdump' 'lib32-bzip2' 'lib32-libdca' 'lib32-faac' 'lib32-faad2' 'lib32-libsndfile') #'xvidcore' 'mjpegtools' 'jasper' 'libvpx' 'gsm' 'libgme' + +url="http://gstreamer.freedesktop.org/" +options=(!libtool !emptydirs) +source=(${url}/src/gst-plugins-bad/gst-plugins-bad-${pkgver}.tar.bz2 + mjpeg-2.0.patch) +md5sums=('9a2acee1f386f71247003d0d7090fb1c' '9415bdab8eb9cfba95df37aaf41c1172') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/gst-plugins-bad-${pkgver}" + patch -Np1 -i "${srcdir}/mjpeg-2.0.patch" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static --enable-experimental \ + --with-package-name="GStreamer Bad Plugins (Archlinux)" \ + --with-package-origin="http://www.archlinux.org/" \ + --libdir=/usr/lib32 + + make + sed -e 's/gst sys ext/gst/' -i Makefile +} + +package() { + cd "${srcdir}/gst-plugins-bad-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{include,share} +} + diff --git a/lib32-gstreamer0.10-bad/mjpeg-2.0.patch b/lib32-gstreamer0.10-bad/mjpeg-2.0.patch new file mode 100644 index 000000000..6f080a9bc --- /dev/null +++ b/lib32-gstreamer0.10-bad/mjpeg-2.0.patch @@ -0,0 +1,28 @@ +From 407b02578689804dc6bc47e53be9e87cc1b25597 Mon Sep 17 00:00:00 2001 +From: Götz Waschk +Date: Tue, 24 May 2011 13:42:44 +0000 +Subject: mpeg2enc: support mjpegtools 2.0 + +This adds conditional includes for the renamed headers in mjpegtools 2.0. +Fixes: #650970. +--- +(limited to 'ext/mpeg2enc') + +diff --git a/ext/mpeg2enc/gstmpeg2encoder.cc b/ext/mpeg2enc/gstmpeg2encoder.cc +index acfda50..31f1a30 100644 +--- a/ext/mpeg2enc/gstmpeg2encoder.cc ++++ b/ext/mpeg2enc/gstmpeg2encoder.cc +@@ -26,7 +26,10 @@ + + #include + #include +-#if GST_MJPEGTOOLS_API >= 10900 ++#if GST_MJPEGTOOLS_API >= 10903 ++#include ++#include ++#elif GST_MJPEGTOOLS_API >= 10900 + #include + #include + #include +-- +cgit v0.9.0.2-2-gbebe diff --git a/lib32-libass/PKGBUILD b/lib32-libass/PKGBUILD new file mode 100644 index 000000000..eac11eab1 --- /dev/null +++ b/lib32-libass/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: jospehgbr + +_pkgbase=libass +pkgname=lib32-${_pkgbase} +pkgver=0.10.0 +pkgrel=1 +pkgdesc="A portable library for SSA/ASS subtitles rendering (32 bit)" +arch=('x86_64') +url="http://code.google.com/p/libass/" +license=('BSD') +depends=('lib32-enca' 'lib32-fontconfig' 'lib32-fribidi' "${_pkgbase}") +makedepends=('gcc-multilib') +options=(!libtool) +source=("http://libass.googlecode.com/files/${_pkgbase}-${pkgver}.tar.xz") +md5sums=('1855bddc4c167f96968dddeeda0eb45c') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/include" + mkdir -p "${pkgdir}/usr/share/licenses" + ln -s ${_pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}" +} diff --git a/lib32-libcdaudio/01-cddb-bufferoverflow.patch b/lib32-libcdaudio/01-cddb-bufferoverflow.patch new file mode 100644 index 000000000..0a4449717 --- /dev/null +++ b/lib32-libcdaudio/01-cddb-bufferoverflow.patch @@ -0,0 +1,15 @@ +Author: Moritz Muehlenhoff +Description: CAN-2005-0706: Bufferoverflow in CDDB lookup parsing + +diff -Naurp libcdaudio.orig/src/cddb.c libcdaudio/src/cddb.c +--- libcdaudio.orig/src/cddb.c 2009-08-02 10:30:05.000000000 +0000 ++++ libcdaudio/src/cddb.c 2009-08-02 10:34:57.000000000 +0000 +@@ -1052,7 +1052,7 @@ cddb_query(int cd_desc, int sock, + } + + query->query_matches = 0; +- while(!cddb_read_line(sock, inbuffer, 256)) { ++ while(query->query_matches < MAX_INEXACT_MATCHES && !cddb_read_line(sock, inbuffer, 256)) { + slashed = 0; + if(strchr(inbuffer, '/') != NULL && parse_disc_artist) { + index = 0; diff --git a/lib32-libcdaudio/02-cddb-bufferoverflow.patch b/lib32-libcdaudio/02-cddb-bufferoverflow.patch new file mode 100644 index 000000000..b5422735c --- /dev/null +++ b/lib32-libcdaudio/02-cddb-bufferoverflow.patch @@ -0,0 +1,15 @@ +Author: Moritz Muehlenhoff +Description: CVE-2008-5030 + +diff -Naurp libcdaudio.orig/src/cddb.c libcdaudio/src/cddb.c +--- libcdaudio.orig/src/cddb.c 2008-09-07 23:53:16.000000000 +0000 ++++ libcdaudio/src/cddb.c 2008-11-12 21:32:21.000000000 +0000 +@@ -1679,7 +1679,7 @@ cddb_read_disc_data(int cd_desc, struct + free(file); + + while(!feof(cddb_data)) { +- fgets(inbuffer, 512, cddb_data); ++ fgets(inbuffer, 256, cddb_data); + cddb_process_line(inbuffer, data); + } + diff --git a/lib32-libcdaudio/PKGBUILD b/lib32-libcdaudio/PKGBUILD new file mode 100644 index 000000000..cd064e02f --- /dev/null +++ b/lib32-libcdaudio/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: josephgbr + +_pkgbase=libcdaudio +pkgname=lib32-${_pkgbase} +pkgver=0.99.12 +pkgrel=1 +pkgdesc="Library for controlling Audio CDs and interacting with CDDB (32 bit)" +arch=('x86_64') +url="http://libcdaudio.sourceforge.net/" +license=('GPL') +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool') +source=(http://downloads.sourceforge.net/sourceforge/libcdaudio/${_pkgbase}-${pkgver}.tar.gz + 01-cddb-bufferoverflow.patch + 02-cddb-bufferoverflow.patch) +md5sums=('63b49cf14d53eed31e7a87cca17a3963' + 'f78c881b92cd7d25472daa90af284e18' + 'e36755c125d2710dc8619bb401e37444') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + patch -Np1 -i "${srcdir}/01-cddb-bufferoverflow.patch" + patch -Np1 -i "${srcdir}/02-cddb-bufferoverflow.patch" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,share} +} diff --git a/lib32-libdc1394/PKGBUILD b/lib32-libdc1394/PKGBUILD new file mode 100644 index 000000000..e764dc502 --- /dev/null +++ b/lib32-libdc1394/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: josephgbr + +_pkgbase=libdc1394 +pkgname=lib32-${_pkgbase} +pkgver=2.1.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' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool' '!emptydirs') +source=("http://downloads.sourceforge.net/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz" + 'rename-usb_init.patch' + 'videodev-compile-fix.patch') +md5sums=('d8b2cbfae1b329fdeaa638da80427334' + 'bc7a4146b4d2d688305d0d42c4111941' + '9dd11c96241b14073c3a7dd7e270fb7a') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + + # FS#25652 + patch -p2 -i "${srcdir}"/rename-usb_init.patch + # Fix build when linux/video.h exists + patch -p2 -i "${srcdir}"/videodev-compile-fix.patch + + autoreconf -i + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,share} +} diff --git a/lib32-libdc1394/rename-usb_init.patch b/lib32-libdc1394/rename-usb_init.patch new file mode 100644 index 000000000..44e1a5de3 --- /dev/null +++ b/lib32-libdc1394/rename-usb_init.patch @@ -0,0 +1,53 @@ +From 13b85d2d23548682b617ddc1196f5560a27998bd Mon Sep 17 00:00:00 2001 +From: Damien Douxchamps +Date: Sun, 21 Aug 2011 16:03:22 +0900 +Subject: [PATCH] fix usb_init function name conflict + +--- + libdc1394/dc1394/control.c | 2 +- + libdc1394/dc1394/internal.h | 2 +- + libdc1394/dc1394/usb/control.c | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/libdc1394/dc1394/control.c b/libdc1394/dc1394/control.c +index c62e0e2..f250f6a 100644 +--- a/libdc1394/dc1394/control.c ++++ b/libdc1394/dc1394/control.c +@@ -1955,7 +1955,7 @@ dc1394_new (void) + windows_init (d); + #endif + #ifdef HAVE_LIBUSB +- usb_init (d); ++ dc1394_usb_init (d); + #endif + + int i; +diff --git a/libdc1394/dc1394/internal.h b/libdc1394/dc1394/internal.h +index b4d295a..c59e5d3 100644 +--- a/libdc1394/dc1394/internal.h ++++ b/libdc1394/dc1394/internal.h +@@ -74,7 +74,7 @@ void juju_init(dc1394_t *d); + void linux_init(dc1394_t *d); + void macosx_init(dc1394_t *d); + void windows_init(dc1394_t *d); +-void usb_init(dc1394_t *d); ++void dc1394_usb_init(dc1394_t *d); + + void register_platform (dc1394_t * d, const platform_dispatch_t * dispatch, + const char * name); +diff --git a/libdc1394/dc1394/usb/control.c b/libdc1394/dc1394/usb/control.c +index 6509452..19a21a6 100644 +--- a/libdc1394/dc1394/usb/control.c ++++ b/libdc1394/dc1394/usb/control.c +@@ -378,7 +378,7 @@ usb_dispatch = { + }; + + void +-usb_init(dc1394_t * d) ++dc1394_usb_init(dc1394_t * d) + { + register_platform (d, &usb_dispatch, "usb"); + } +-- +1.7.4.1 + diff --git a/lib32-libdc1394/videodev-compile-fix.patch b/lib32-libdc1394/videodev-compile-fix.patch new file mode 100644 index 000000000..8f234b152 --- /dev/null +++ b/lib32-libdc1394/videodev-compile-fix.patch @@ -0,0 +1,41 @@ +From 2ee7e7f98dd6225b40d5cd570c240504be7bc86a Mon Sep 17 00:00:00 2001 +From: David Moore +Date: Sun, 27 Mar 2011 22:48:15 -0700 +Subject: [PATCH] Conditionally compile dc1394_vloopback only when linux/videodev.h exists + +--- + libdc1394/configure.in | 3 +++ + libdc1394/examples/Makefile.am | 2 ++ + 2 files changed, 7 insertions(+), 0 deletions(-) + +diff --git a/libdc1394/configure.in b/libdc1394/configure.in +index 69babab..bdddc9b 100644 +--- a/libdc1394/configure.in ++++ b/libdc1394/configure.in +@@ -75,6 +75,9 @@ AM_CONDITIONAL(HAVE_WINDOWS, test x$have_windows = xtrue) + AM_CONDITIONAL(HAVE_LIBRAW1394, test x$libraw1394 = xtrue) + AM_CONDITIONAL(HAVE_LIBUSB, test "x$LIBUSB_LIBS" != "x") + ++AC_CHECK_HEADER([linux/videodev.h], [have_videodev=true]) ++AM_CONDITIONAL(HAVE_VIDEODEV, test x$have_videodev = xtrue) ++ + AC_ARG_ENABLE([examples], [AS_HELP_STRING([--disable-examples], [don't build example programs])], [build_examples=$enableval], [build_examples=true]) + + AM_CONDITIONAL(MAKE_EXAMPLES, test x$build_examples = xtrue) +diff --git a/libdc1394/examples/Makefile.am b/libdc1394/examples/Makefile.am +index fcebf18..035612e 100644 +--- a/libdc1394/examples/Makefile.am ++++ b/libdc1394/examples/Makefile.am +@@ -8,7 +8,9 @@ A = grab_gray_image grab_partial_image grab_color_image \ + B = dc1394_reset_bus + + if HAVE_LINUX ++if HAVE_VIDEODEV + B += dc1394_vloopback ++endif + if HAVE_XV + A += dc1394_multiview + endif +-- +1.7.4.1 + diff --git a/lib32-libdca/PKGBUILD b/lib32-libdca/PKGBUILD new file mode 100644 index 000000000..46ee8be18 --- /dev/null +++ b/lib32-libdca/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: josephgbr + +_pkgbase=libdca +pkgname=lib32-${_pkgbase} +pkgver=0.0.5 +pkgrel=3 +pkgdesc="Free library for decoding DTS Coherent Acoustics streams (32 bit)" +arch=('x86_64') +license=('GPL') +url="http://www.videolan.org/developers/libdca.html" +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool' '!emptydirs') +source=("http://download.videolan.org/pub/videolan/${_pkgbase}/${pkgver}/${_pkgbase}-${pkgver}.tar.bz2") +md5sums=('dab6b2795c66a82a6fcd4f8343343021') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,share} + rm "${pkgdir}/usr/lib32/libdts.a" +} diff --git a/lib32-libdvdcss/PKGBUILD b/lib32-libdvdcss/PKGBUILD new file mode 100644 index 000000000..985293556 --- /dev/null +++ b/lib32-libdvdcss/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: josephgbr + +_pkgbase=libdvdcss +pkgname=lib32-${_pkgbase} +pkgver=1.2.11 +pkgrel=1 +pkgdesc="A portable abstraction library for DVD decryption (32 bit)" +url="http://www.videolan.org/libdvdcss" +arch=('x86_64') +license=('GPL') +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool') +source=(http://download.videolan.org/pub/${_pkgbase}/${pkgver}/${_pkgbase}-${pkgver}.tar.bz2) +sha512sums=('32dec992cf2f352a09c4edc39ea16101fc9005f3aecc43460aa1b5834c104d3f2c1efc81051339fa18fd4f33cfa949fd17ffe84414519a92b91d0d8a1ae4c467') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/include" +} diff --git a/lib32-libdvdnav/PKGBUILD b/lib32-libdvdnav/PKGBUILD new file mode 100644 index 000000000..5fc1b15e9 --- /dev/null +++ b/lib32-libdvdnav/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: josephgbr + +_pkgbase=libdvdnav +pkgname=lib32-${_pkgbase} +pkgver=4.2.0 +pkgrel=1 +pkgdesc="The library for xine-dvdnav plugin (32 bit)" +arch=('x86_64') +license=('GPL') +url="http://dvdnav.mplayerhq.hu/" +depends=('lib32-libdvdread' "${_pkgbase}") +makedepends=('gcc-multilib') +options=(!libtool) +source=(http://dvdnav.mplayerhq.hu/releases/${_pkgbase}-${pkgver}.tar.bz2) +sha256sums=('8c971b08276c89ddcecd26fc44204460fd250dc57346f03476d3077188c47550') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./autogen.sh --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,share} +} diff --git a/lib32-libdvdread/PKGBUILD b/lib32-libdvdread/PKGBUILD new file mode 100644 index 000000000..8dfbe7442 --- /dev/null +++ b/lib32-libdvdread/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: josephgbr + +_pkgbase=libdvdread +pkgname=lib32-${_pkgbase} +pkgver=4.2.0 +pkgrel=1 +pkgdesc="Provides a simple foundation for reading DVD video disks (32 bit)" +arch=('x86_64') +url="http://dvdnav.mplayerhq.hu" +license=('GPL') +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('lib32-libdvdcss' 'gcc-multilib') +options=('!libtool') +source=(http://dvdnav.mplayerhq.hu/releases/${_pkgbase}-${pkgver}.tar.bz2) +sha256sums=('0bea15da842a4b04a482b009d72dcc6d9c9524ccc1bf67e5748319ec5ada8097') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./autogen.sh --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,share} +} diff --git a/lib32-liblrdf/PKGBUILD b/lib32-liblrdf/PKGBUILD new file mode 100644 index 000000000..ea9a13fdb --- /dev/null +++ b/lib32-liblrdf/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: josephgbr + +_pkgbase=liblrdf +pkgname=lib32-${_pkgbase} +pkgver=0.4.0 +pkgrel=1 +pkgdesc="A library for the manipulation of RDF file in LADSPA plugins (32 bit)" +arch=('x86_64') +url="http://sourceforge.net/projects/lrdf" +depends=('lib32-raptor' 'ladspa' "$_pkgbase") +makedepends=('gcc-multilib') +license=('GPL') +options=('!libtool') +source=(http://downloads.sourceforge.net/sourceforge/lrdf/${_pkgbase}-${pkgver}.tar.gz + md5.patch + raptor2.diff + pkgconfig-raptor.patch) +md5sums=('327a5674f671c4b360c6353800226877' + 'a6d231d052dc188cbc4c1039cf3a2003' + '80e938469da06a178e03107ca5b41e55' + '982ae1bd4b39c2fb5cba108fbcbfbad1') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + patch -Np1 -i "${srcdir}/md5.patch" + patch -Np0 -i "${srcdir}/raptor2.diff" + patch -Np1 -i "${srcdir}/pkgconfig-raptor.patch" + autoreconf -vfi + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/{include,share} +} diff --git a/lib32-liblrdf/md5.patch b/lib32-liblrdf/md5.patch new file mode 100644 index 000000000..1c43b12e9 --- /dev/null +++ b/lib32-liblrdf/md5.patch @@ -0,0 +1,18 @@ +--- liblrdf-0.4.0.orig/src/lrdf_md5.h ++++ liblrdf-0.4.0/src/lrdf_md5.h +@@ -32,6 +32,15 @@ + #ifndef __MD5_H__ + #define __MD5_H__ + ++/* Change function names to prevent symbol conflicts */ ++#define md5_init _lrdf_md5_init ++#define md5_buffer _lrdf_md5_buffer ++#define md5_sig_from_string _lrdf_md5_sig_from_string ++#define md5_finish _lrdf_md5_finish ++#define md5_process _lrdf_md5_process ++#define md5_sig_to_string _lrdf_md5_sig_to_string ++#define md5_get_result _lrdf_md5_get_result ++ + /* + * Size of a standard MD5 signature in bytes. This definition is for + * external programs only. The MD5 routines themselves reference the diff --git a/lib32-liblrdf/pkgconfig-raptor.patch b/lib32-liblrdf/pkgconfig-raptor.patch new file mode 100644 index 000000000..c68f1f1b5 --- /dev/null +++ b/lib32-liblrdf/pkgconfig-raptor.patch @@ -0,0 +1,9 @@ +--- liblrdf-0.4.0/lrdf.pc.in.orig 2011-10-03 19:28:16.702773254 +0000 ++++ liblrdf-0.4.0/lrdf.pc.in 2011-10-03 19:28:43.003017477 +0000 +@@ -7,4 +7,5 @@ + Version: @VERSION@ + Description: liblrdf, a lightweight RDF library with extensions for LADSPA + Libs: -L${libdir} -llrdf +-Cflags: -I${includedir} ++Libs.private: @RAPTOR_LIBS@ ++Cflags: @RAPTOR_CFLAGS@ -I${includedir} diff --git a/lib32-liblrdf/raptor2.diff b/lib32-liblrdf/raptor2.diff new file mode 100644 index 000000000..77f1ad0e3 --- /dev/null +++ b/lib32-liblrdf/raptor2.diff @@ -0,0 +1,193 @@ +--- src/Makefile.am ++++ src/Makefile.am +@@ -4,5 +4,5 @@ lib_LTLIBRARIES = liblrdf.la + noinst_HEADERS = lrdf_md5.h md5_loc.h ladspa.h + + liblrdf_la_SOURCES = lrdf.c lrdf_multi.c md5.c +-liblrdf_la_LIBADD = -lraptor ++liblrdf_la_LIBADD = -lraptor2 + liblrdf_la_LDFLAGS = -version-info @LRDF_LIBTOOL_VERSION@ +--- src/lrdf.c ++++ src/lrdf.c +@@ -18,6 +18,7 @@ + static unsigned int lrdf_uid = 0; /* A unique(ish) id to append to genid's to + * avoid clashses */ + ++static raptor_world *world = NULL; + static lrdf_statement *triples = NULL; + static lrdf_statement *free_triples; + static lrdf_string_hash *resources_hash[LRDF_HASH_SIZE]; +@@ -43,8 +44,7 @@ static void lrdf_remove_triple_hash(lrdf_triple_hash ** tbl, + lrdf_hash hash, lrdf_statement * s); + static void lrdf_add_closure_hash(lrdf_closure_hash ** tbl, + lrdf_hash subject, lrdf_hash object); +-static void lrdf_store(void *user_data, +- const raptor_statement * statement); ++static void lrdf_store(void *user_data, raptor_statement * statement); + void lrdf_free_statements(lrdf_statement * s); + void lrdf_copy_statement(lrdf_statement * from, lrdf_statement * to); + void lrdf_rebuild_taxonomic_closure(lrdf_closure_hash ** fwd_tbl, +@@ -71,7 +71,7 @@ void lrdf_init() + unsigned int i; + struct timeval tv; + +- raptor_init(); ++ world = raptor_new_world(); + lrdf_more_triples(256); + + /* A UID to add to genids to make them safer */ +@@ -112,7 +112,8 @@ void lrdf_more_triples(int count) + + void lrdf_cleanup() + { +- raptor_finish(); ++ raptor_free_world(world); ++ world = NULL; + + lrdf_free_string_hash(resources_hash); + lrdf_free_string_hash(literals_hash); +@@ -232,26 +233,29 @@ void lrdf_remove_matches(lrdf_statement *pattern) + } + } + +-static void lrdf_store(void *user_data, const raptor_statement * statement) ++static const char *lrdf_term_as_string(char *tmp, int tmp_len, ++ const raptor_term *term) ++{ ++ switch (term->type) { ++ case RAPTOR_TERM_TYPE_URI: ++ return (const char *) raptor_uri_as_string(term->value.uri); ++ case RAPTOR_TERM_TYPE_LITERAL: ++ return (const char *) term->value.literal.string; ++ case RAPTOR_TERM_TYPE_BLANK: ++ snprintf(tmp, tmp_len, "_:%s.%x", term->value.blank.string, lrdf_uid); ++ return tmp; ++ default: ++ return "(?)"; ++ } ++} ++ ++static void lrdf_store(void *user_data, raptor_statement * statement) + { + lrdf_statement *s = lrdf_alloc_statement(); + char tmps[128], tmpp[128], tmpo[128]; +- char *subj = (char *) statement->subject, +- *pred = (char *) statement->predicate, +- *obj = (char *) statement->object; +- +- if (statement->subject_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) { +- snprintf(tmps, 127, "_:%s.%x", subj, lrdf_uid); +- subj = tmps; +- } +- if (statement->predicate_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) { +- snprintf(tmpp, 127, "_:%s.%x", pred, lrdf_uid); +- pred = tmpp; +- } +- if (statement->object_type == RAPTOR_IDENTIFIER_TYPE_ANONYMOUS) { +- snprintf(tmpo, 127, "_:%s.%x", obj, lrdf_uid); +- obj = tmpo; +- } ++ const char *subj = lrdf_term_as_string(tmps, 128, statement->subject), ++ *pred = lrdf_term_as_string(tmpp, 128, statement->predicate), ++ *obj = lrdf_term_as_string(tmpo, 128, statement->object); + + s->shash = lrdf_gen_hash(subj); + s->phash = lrdf_gen_hash(pred); +@@ -261,7 +265,7 @@ static void lrdf_store(void *user_data, const raptor_statement * statement) + + s->subject = lrdf_check_hash(resources_hash, s->shash, subj); + s->predicate = lrdf_check_hash(resources_hash, s->phash, pred); +- if (statement->object_type == RAPTOR_IDENTIFIER_TYPE_LITERAL) { ++ if (statement->object->type == RAPTOR_TERM_TYPE_LITERAL) { + s->object = lrdf_check_hash(literals_hash, s->ohash, obj); + s->object_type = lrdf_literal; + } else { +@@ -537,28 +541,22 @@ void lrdf_rebuild_taxonomic_closure(lrdf_closure_hash ** fwd_tbl, + free(pathto); + } + +-static void lrdf_error_handler(void *data, raptor_locator * locator, +- const char *message); ++static void lrdf_log_handler(void *data, raptor_log_message *message); + +-static void lrdf_error_handler(void *data, raptor_locator * locator, +- const char *message) ++static void lrdf_log_handler(void *data, raptor_log_message *message) + { +- fprintf(stderr, "liblrdf: error - "); +- raptor_print_locator(stderr, locator); +- fprintf(stderr, " - %s\n", message); +- +- raptor_parse_abort((raptor_parser*)data); +-} ++ const char *severity = "error"; ++ if (message->level == RAPTOR_LOG_LEVEL_WARN) { ++ severity = "warning"; ++ } + +-static void lrdf_warning_handler(void *data, raptor_locator * locator, +- const char *message); ++ fprintf(stderr, "liblrdf: %s - ", severity); ++ raptor_locator_print(message->locator, stderr); ++ fprintf(stderr, " - %s\n", message->text); + +-static void lrdf_warning_handler(void *data, raptor_locator * locator, +- const char *message) +-{ +- fprintf(stderr, "liblrdf: warning - "); +- raptor_print_locator(stderr, locator); +- fprintf(stderr, " - %s\n", message); ++ if (message->level != RAPTOR_LOG_LEVEL_WARN) { ++ raptor_parser_parse_abort((raptor_parser*)data); ++ } + } + + +@@ -593,15 +591,15 @@ int lrdf_read_file_intl(const char *uri) + lrdf_hash source; + + //printf("lrdf: reading %s\n", uri); +- ruri = raptor_new_uri(uri); +- furi = raptor_new_uri(uri); ++ ruri = raptor_new_uri(world, (const unsigned char *) uri); ++ furi = raptor_new_uri(world, (const unsigned char *) uri); + source = lrdf_gen_hash(uri); + lrdf_check_hash(resources_hash, source, uri); + + if (strstr(uri, ".rdf")) { +- parser = raptor_new_parser("rdfxml"); ++ parser = raptor_new_parser(world, "rdfxml"); + } else { +- parser = raptor_new_parser("ntriples"); ++ parser = raptor_new_parser(world, "ntriples"); + } + if (!parser) { + fprintf(stderr, "liblrdf: failed to create parser\n"); +@@ -609,12 +607,11 @@ int lrdf_read_file_intl(const char *uri) + return 1; + } + +- raptor_set_error_handler(parser, parser, lrdf_error_handler); +- raptor_set_warning_handler(parser, NULL, lrdf_warning_handler); +- raptor_set_statement_handler(parser, &source, lrdf_store); +- raptor_set_default_generate_id_parameters(parser, NULL, ++lrdf_uid); ++ raptor_world_set_log_handler(world, parser, lrdf_log_handler); ++ raptor_parser_set_statement_handler(parser, &source, lrdf_store); ++ raptor_world_set_generate_bnodeid_parameters(world, NULL, ++lrdf_uid); + +- if (raptor_parse_file(parser, furi, ruri)) { ++ if (raptor_parser_parse_file(parser, furi, ruri)) { + raptor_free_uri(furi); + raptor_free_uri(ruri); + raptor_free_parser(parser); +--- configure.ac ++++ configure.ac +@@ -18,7 +18,7 @@ + AC_HEADER_STDC + AC_CHECK_HEADERS([errno.h limits.h stdlib.h string.h unistd.h]) + +-PKG_CHECK_MODULES(RAPTOR, raptor >= 0.9.11) ++PKG_CHECK_MODULES(RAPTOR, raptor2 >= 0.9.11) + + # Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST diff --git a/lib32-libmms/PKGBUILD b/lib32-libmms/PKGBUILD new file mode 100644 index 000000000..d9b386cc1 --- /dev/null +++ b/lib32-libmms/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: josephgbr + +_pkgbase=libmms +pkgname=lib32-${_pkgbase} +pkgver=0.6.2 +pkgrel=1 +pkgdesc="MMS stream protocol library (32 bit)" +arch=('x86_64') +url="http://sourceforge.net/projects/libmms/" +license=(LGPL) +depends=('lib32-glib2' "$_pkgbase") +makedepends=('gcc-multilib') +options=('!libtool') +source=(http://download.sourceforge.net/libmms/${_pkgbase}-${pkgver}.tar.gz) +md5sums=('9f63aa363deb4874e072a45850161bff') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --disable-static --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/include" +} diff --git a/lib32-libmodplug/PKGBUILD b/lib32-libmodplug/PKGBUILD new file mode 100644 index 000000000..c39b68e61 --- /dev/null +++ b/lib32-libmodplug/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: josephgbr + +_pkgbase=libmodplug +pkgname=lib32-${_pkgbase} +pkgver=0.8.8.3 +pkgrel=1 +pkgdesc="A MOD playing library (32 bit)" +arch=('x86_64') +url="http://modplug-xmms.sourceforge.net/" +license=('custom') +depends=('lib32-gcc-libs' "$_pkgbase") +makedepends=('gcc-multilib') +options=('!libtool') +source=("http://downloads.sourceforge.net/modplug-xmms/${_pkgbase}-${pkgver}.tar.gz") +md5sums=('8a9c713f0f56894163ddc61f9a0d1f71') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/include" + mkdir -p "${pkgdir}/usr/share/licenses" + ln -s ${_pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}" +} diff --git a/lib32-libmpcdec/PKGBUILD b/lib32-libmpcdec/PKGBUILD new file mode 100644 index 000000000..1b2f45abe --- /dev/null +++ b/lib32-libmpcdec/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: josephgbr + +_pkgbase=libmpcdec +pkgname=lib32-${_pkgbase} +pkgver=1.2.6 +pkgrel=1 +pkgdesc="Musepack decoding library (32 bit)" +arch=('x86_64') +url="http://musepack.net/" +license=('custom') +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool') +source=("http://files.musepack.net/source/${_pkgbase}-${pkgver}.tar.bz2") +md5sums=('7f7a060e83b4278acf4b77d7a7b9d2c0') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --disable-static --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/include" + mkdir -p "${pkgdir}/usr/share/licenses" + ln -sf ${_pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}" +} diff --git a/lib32-libofa/PKGBUILD b/lib32-libofa/PKGBUILD new file mode 100644 index 000000000..e018ccb5f --- /dev/null +++ b/lib32-libofa/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: josephgbr + +_pkgbase=libofa +pkgname=lib32-${_pkgbase} +pkgver=0.9.3 +pkgrel=1 +pkgdesc="An open-source audio fingerprint by MusicIP (32 bit)" +arch=('x86_64') +url="http://code.google.com/p/musicip-libofa/" +license=('GPL2' 'custom') +depends=('lib32-expat' 'lib32-fftw' 'lib32-gcc-libs' "${_pkgbase}") +makedepends=('gcc-multilib' 'lib32-curl') +options=('!libtool') +source=("http://musicip-libofa.googlecode.com/files/${_pkgbase}-${pkgver}.tar.gz" + 'gcc-4.patch' + 'gcc4.3.patch' + 'gcc4.5.patch' + 'fix_ftbfs.diff') +sha1sums=('3dec8e1dcea937f74b4165e9ffd4d4f355e4594a' + 'cb19377d0634c03d2a49cfc61915cec918c341f7' + 'cae08bdc12de923d5e032696702a0530ae6eafc1' + '754d69d66ab46219035ccafeeb3ff62433cca4f2' + 'dfddfb6e9db037f8edce116911855c6732320dca') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + + patch -p0 -i ${srcdir}/gcc-4.patch + patch -p1 -i ${srcdir}/gcc4.3.patch + patch -p1 -i ${srcdir}/gcc4.5.patch + #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637896 + patch -p1 -i ${srcdir}/fix_ftbfs.diff + + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR=${pkgdir} install + rm -rf "${pkgdir}/usr/include" + mkdir -p "${pkgdir}/usr/share/licenses" + ln -sf ${_pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}" +} diff --git a/lib32-libofa/fix_ftbfs.diff b/lib32-libofa/fix_ftbfs.diff new file mode 100644 index 000000000..a79bf9860 --- /dev/null +++ b/lib32-libofa/fix_ftbfs.diff @@ -0,0 +1,13 @@ +Description: Fix FTBFS due to unexisting and useless include. +Author: Regis Boudin + +--- libofa-0.9.3.orig/examples/protocol.cpp ++++ libofa-0.9.3/examples/protocol.cpp +@@ -13,7 +13,6 @@ + #include + #include + #include +-#include + #include + + using namespace std; diff --git a/lib32-libofa/gcc-4.patch b/lib32-libofa/gcc-4.patch new file mode 100644 index 000000000..d1059bafa --- /dev/null +++ b/lib32-libofa/gcc-4.patch @@ -0,0 +1,39 @@ +--- lib/JAMA/tnt_math_utils.h.orig 2006-06-17 01:46:22.000000000 +0300 ++++ lib/JAMA/tnt_math_utils.h 2006-06-17 01:47:02.000000000 +0300 +@@ -20,11 +20,20 @@ + namespace TNT + { + /** ++ @returns the absolute value of a real (no-complex) scalar. ++*/ ++template ++Real abs(const Real &a) ++{ ++ return (a > 0 ? a : -a); ++} ++/** + @returns hypotenuse of real (non-complex) scalars a and b by + avoiding underflow/overflow + using (a * sqrt( 1 + (b/a) * (b/a))), rather than + sqrt(a*a + b*b). + */ ++ + template + Real hypot(const Real &a, const Real &b) + { +@@ -56,15 +65,6 @@ + } + */ + +-/** +- @returns the absolute value of a real (no-complex) scalar. +-*/ +-template +-Real abs(const Real &a) +-{ +- return (a > 0 ? a : -a); +-} +- + } + #endif + /* MATH_UTILS_H */ diff --git a/lib32-libofa/gcc4.3.patch b/lib32-libofa/gcc4.3.patch new file mode 100644 index 000000000..f68f42bfb --- /dev/null +++ b/lib32-libofa/gcc4.3.patch @@ -0,0 +1,35 @@ +diff -ur libofa-0.9.3.orig/examples/example.cpp libofa-0.9.3/examples/example.cpp +--- libofa-0.9.3.orig/examples/example.cpp 2006-05-10 21:05:37.000000000 +0300 ++++ libofa-0.9.3/examples/example.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -9,6 +9,8 @@ + + #include "protocol.h" + ++#include ++ + AudioData* loadWaveFile(char *file); + AudioData* loadDataUsingLAME(char *file); + +Vain hakemistossa libofa-0.9.3/examples: example.cpp.orig +diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp +--- libofa-0.9.3.orig/examples/protocol.cpp 2006-05-10 21:05:42.000000000 +0300 ++++ libofa-0.9.3/examples/protocol.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -8,6 +8,7 @@ + -------------------------------------------------------------------*/ + #include + #include ++#include + #include + #include + #include +diff -ur libofa-0.9.3.orig/lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp +--- libofa-0.9.3.orig/lib/signal_op.cpp 2006-05-10 21:01:12.000000000 +0300 ++++ libofa-0.9.3/lib/signal_op.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -12,6 +12,7 @@ + // DATE CREATED: 1/12/06 + + ++#include + #include + #include "signal_op.h" + #include "AFLIB/aflibConverter.h" diff --git a/lib32-libofa/gcc4.5.patch b/lib32-libofa/gcc4.5.patch new file mode 100644 index 000000000..44f437d5b --- /dev/null +++ b/lib32-libofa/gcc4.5.patch @@ -0,0 +1,10 @@ +--- libofa-0.9.3/examples/example.cpp~ 2010-05-19 18:07:19.517650317 +0200 ++++ libofa-0.9.3/examples/example.cpp 2010-05-19 18:07:31.754317472 +0200 +@@ -6,6 +6,7 @@ + No rights reserved. + + -------------------------------------------------------------------*/ ++#include + + #include "protocol.h" + diff --git a/lib32-libraw1394/PKGBUILD b/lib32-libraw1394/PKGBUILD new file mode 100644 index 000000000..9ed25505e --- /dev/null +++ b/lib32-libraw1394/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: josephgbr + +_pkgbase=libraw1394 +pkgname=lib32-${_pkgbase} +pkgver=2.0.7 +pkgrel=1 +pkgdesc="Provides an API to the Linux IEEE1394 (FireWire) driver (32 bit)" +arch=('x86_64') +url="https://ieee1394.wiki.kernel.org/index.php/Main_Page" +license=('LGPL2.1') +depends=('lib32-glibc' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool') +source=(ftp://ftp.kernel.org/pub/linux/libs/ieee1394/${_pkgbase}-${pkgver}.tar.bz2) +md5sums=('997ef18ab8e2e21f3966dff00e92be28') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package () { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/{bin,include,share} +} + diff --git a/lib32-musicbrainz/PKGBUILD b/lib32-musicbrainz/PKGBUILD new file mode 100644 index 000000000..2fba4cd96 --- /dev/null +++ b/lib32-musicbrainz/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: josephgbr + +_pkgbase=musicbrainz +pkgname=lib32-${_pkgbase} +pkgver=2.1.5 +pkgrel=1 +pkgdesc="The second generation incarnation of the CD Index (32 bit)" +arch=('x86_64') +url="http://www.musicbrainz.org/index.html" +license=('LGPL') +depends=('lib32-expat' 'lib32-gcc-libs' "${_pkgbase}") +makedepends=('gcc-multilib') #'python2' +options=('!libtool') +source=(ftp://ftp.musicbrainz.org/pub/$_pkgbase/libmusicbrainz-${pkgver}.tar.gz + 'gcc4.3.patch') +md5sums=('d5e19bb77edd6ea798ce206bd05ccc5f' + '9455555d03e3bd15d488ffdb2287ffa7') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/lib${_pkgbase}-${pkgver}" + patch -p1 -i ${srcdir}/gcc4.3.patch + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}/lib${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/include" + + ## python is not ready for multilib + #cd python + #python2 setup.py install --root=${pkgdir} +} + diff --git a/lib32-musicbrainz/gcc4.3.patch b/lib32-musicbrainz/gcc4.3.patch new file mode 100644 index 000000000..cc412f3d2 --- /dev/null +++ b/lib32-musicbrainz/gcc4.3.patch @@ -0,0 +1,57 @@ +diff -Naur libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp libmusicbrainz-2.1.4/lib/c_wrapper.cpp +--- libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp 2003-10-16 16:21:10.000000000 -0600 ++++ libmusicbrainz-2.1.4/lib/c_wrapper.cpp 2007-12-16 09:45:21.000000000 -0600 +@@ -24,6 +24,7 @@ + #include "musicbrainz.h" + #include "trm.h" + #include "mb_c.h" ++#include + + extern "C" + { +diff -Naur libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp libmusicbrainz-2.1.4/lib/comhttpsocket.cpp +--- libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp 2006-05-11 12:46:54.000000000 -0600 ++++ libmusicbrainz-2.1.4/lib/comhttpsocket.cpp 2007-12-16 09:46:28.000000000 -0600 +@@ -20,6 +20,7 @@ + #endif + #include + #include ++#include + + const char* g_strCOMVer = "libmusicbrainz/"VERSION; + +diff -Naur libmusicbrainz-2.1.4-orig/lib/comsocket.cpp libmusicbrainz-2.1.4/lib/comsocket.cpp +--- libmusicbrainz-2.1.4-orig/lib/comsocket.cpp 2006-05-11 12:46:54.000000000 -0600 ++++ libmusicbrainz-2.1.4/lib/comsocket.cpp 2007-12-16 09:46:08.000000000 -0600 +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff -Naur libmusicbrainz-2.1.4-orig/lib/http.cpp libmusicbrainz-2.1.4/lib/http.cpp +--- libmusicbrainz-2.1.4-orig/lib/http.cpp 2007-12-16 09:52:48.000000000 -0600 ++++ libmusicbrainz-2.1.4/lib/http.cpp 2007-12-16 09:52:36.000000000 -0600 +@@ -31,6 +31,8 @@ + #endif + #include + #include ++#include ++#include + + #ifdef WIN32 + #include +diff -Naur libmusicbrainz-2.1.4-orig/lib/sigclient.cpp libmusicbrainz-2.1.4/lib/sigclient.cpp +--- libmusicbrainz-2.1.4-orig/lib/sigclient.cpp 2006-05-11 12:46:54.000000000 -0600 ++++ libmusicbrainz-2.1.4/lib/sigclient.cpp 2007-12-16 09:54:48.000000000 -0600 +@@ -33,6 +33,8 @@ + #pragma warning(disable:4786) + #endif + ++#include ++ + #include "sigclient.h" + #include "comhttpsocket.h" + diff --git a/lib32-neon/PKGBUILD b/lib32-neon/PKGBUILD new file mode 100644 index 000000000..8f61bfcce --- /dev/null +++ b/lib32-neon/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: josephgbr + +_pkgbase=neon +pkgname=lib32-${_pkgbase} +pkgver=0.29.6 +pkgrel=1 +pkgdesc="HTTP and WebDAV client library with a C interface (32 bit)" +arch=('x86_64') +license=('GPL' 'LGPL') +depends=('lib32-krb5' 'lib32-expat' "${_pkgbase}") #'ca-certificates' +makedepends=('gcc-multilib') +url="http://www.webdav.org/neon/" +source=("http://www.webdav.org/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz") +md5sums=('591e0c82e6979e7e615211b386b8f6bc') +options=('libtool') # FS#16067 + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}"/${_pkgbase}-${pkgver} + ./configure --prefix=/usr \ + --with-expat \ + --enable-shared \ + --disable-static \ + --with-ssl=openssl \ + --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ + --libdir=/usr/lib32 --without-libproxy # without proxy, just like 'neon' package + make + + # fix invalid .so links in man pages (FS#24902) + sed -i '/^\.so/s|\.so \([^.]\+\)\.\([[:digit:]]\)|.so man\2/\1.\2|' doc/man/* +} + +package() { + cd "${srcdir}"/${_pkgbase}-${pkgver} + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,share} +} diff --git a/lib32-raptor/PKGBUILD b/lib32-raptor/PKGBUILD new file mode 100644 index 000000000..06bac3e19 --- /dev/null +++ b/lib32-raptor/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: josephgbr + +_pkgbase=raptor +pkgname=lib32-${_pkgbase} +pkgver=2.0.6 +pkgrel=1 +pkgdesc="A C library that parses RDF/XML/N-Triples into RDF triples (32 bit)" +arch=('x86_64') +url="http://librdf.org/raptor" +depends=('lib32-curl' 'lib32-libxslt' "$_pkgbase") +makedepends=('gcc-multilib') +license=('LGPL') +options=('!libtool') +source=("http://librdf.org/dist/source/raptor2-${pkgver}.tar.gz") +md5sums=('1f07af81cbe3cf1bf0d1d250b18d9f93') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}"/raptor2-${pkgver} + ./configure --prefix=/usr \ + --disable-static \ + --with-yajl=no \ + --libdir=/usr/lib32 + make +} + +package() { + cd "${srcdir}"/raptor2-${pkgver} + make prefix="${pkgdir}"/usr libdir="${pkgdir}"/usr/lib32 install + rm -rf "${pkgdir}"/usr/{bin,include,share} +} diff --git a/lib32-rtmpdump/PKGBUILD b/lib32-rtmpdump/PKGBUILD new file mode 100644 index 000000000..577c96966 --- /dev/null +++ b/lib32-rtmpdump/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: josephgbr + +_pkgbase=rtmpdump +pkgname=lib32-${_pkgbase} +pkgver=2.4 +pkgrel=1 +pkgdesc="A tool to download rtmp streams (32 bit)" +arch=('x86_64') +url="http://rtmpdump.mplayerhq.hu/" +license=('GPL2' 'LGPL2.1') +depends=('lib32-openssl' "${_pkgbase}") +makedepends=('gcc-multilib') +#source=(http://rtmpdump.mplayerhq.hu/download/${_pkgbase}-${pkgver}.tgz) +source=(ftp://ftp.archlinux.org/other/${_pkgbase}/${_pkgbase}-${pkgver}.tar.xz) +sha256sums=('2c3b76d46d56180176ef099b8ad50a1608bef1dac35d8cb0b21ceac31b5c0656') + +build() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + + # prefix = /usr/local -> /usr + # CC = gcc -> gcc -m32 + sed -e '/^prefix\=/s/\/local//' \ + -e '/^CC\=/s/gcc/gcc -m32/' \ + -i Makefile librtmp/Makefile + + make -j1 +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + install -d -m755 "${pkgdir}/usr/lib32" + make prefix=/usr mandir=/usr/share/man libdir=/usr/lib32 DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr"/{bin,include,sbin,share} +} diff --git a/lib32-schroedinger/PKGBUILD b/lib32-schroedinger/PKGBUILD new file mode 100644 index 000000000..3c000d0d0 --- /dev/null +++ b/lib32-schroedinger/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: josephgbr + +_pkgbase=schroedinger +pkgname=lib32-${_pkgbase} +pkgver=1.0.10 +pkgrel=1 +pkgdesc="An implemenation of the Dirac video codec in ANSI C code (32 bit)" +arch=('x86_64') +url="http://www.diracvideo.org/" +license=('GPL2' 'LGPL2' 'MPL' 'MIT') +depends=('lib32-orc' 'lib32-gcc-libs' "${_pkgbase}") +makedepends=('gcc-multilib') +options=('!libtool') +source=(http://www.diracvideo.org/download/schroedinger/${_pkgbase}-${pkgver}.tar.gz) +md5sums=('9de088ccc314bb9e766cb3aa6510a0ef') + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + cd "${srcdir}/${_pkgbase}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 + + make +} + +package() { + cd "${srcdir}/${_pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/{include,share} + mkdir -p "${pkgdir}/usr/share/licenses" + ln -sf ${_pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}" +} diff --git a/libcec-git/PKGBUILD b/libcec-git/PKGBUILD new file mode 100644 index 000000000..9be4083ac --- /dev/null +++ b/libcec-git/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Cedric Girard + +pkgname=libcec-git +pkgver=20120126 +pkgrel=1 +pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter" +arch=('i686' 'x86_64') +url="https://github.com/Pulse-Eight/libcec" +license=('GPL') +makedepends=('git') +depends=('udev>=151') +provides=('libcec') +conflicts=('libcec') +options=('!libtool') + +_gitroot="https://github.com/Pulse-Eight/libcec.git" +_gitname="libcec" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + autoreconf -vif + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$_gitname-build" + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: diff --git a/pianobooster/PKGBUILD b/pianobooster/PKGBUILD index 820fa56b6..69906009d 100644 --- a/pianobooster/PKGBUILD +++ b/pianobooster/PKGBUILD @@ -4,13 +4,13 @@ pkgname=pianobooster pkgver=0.6.4b -pkgrel=2 +pkgrel=3 pkgdesc="A new way to learn the piano just by playing a game." arch=('i686' 'x86_64') url="http://pianobooster.sourceforge.net/" license=('GPL3') depends=('qt') -makedepends=('cmake') +makedepends=('cmake' 'mesa') install="$pkgname.install" source=("http://downloads.sourceforge.net/$pkgname/$pkgname-src-$pkgver.tar.gz") md5sums=('4c1c34a4b763e6108aa9668be7890696') @@ -20,8 +20,8 @@ build() { cmake -DCMAKE_INSTALL_PREFIX=/usr ../src - # DSO GL fix - sed -i "s/$/-lGL/" CMakeFiles/pianobooster.dir/link.txt + # DSO GL and pthread fix + sed -i "s/$/-lGL -lpthread/" CMakeFiles/pianobooster.dir/link.txt make } diff --git a/python2-clint/PKGBUILD b/python2-clint/PKGBUILD new file mode 100644 index 000000000..9f5d709d0 --- /dev/null +++ b/python2-clint/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: (epsilom) Xavier Corredor +pkgname=python2-clint +pkgver=0.3.1 +pkgrel=1 +pkgdesc="Module for developing commandline applications" +arch=('any') +url="http://pypi.python.org/pypi/clint/" +license=('ISC') +depends=('python2') +source=("http://pypi.python.org/packages/source/c/clint/clint-$pkgver.tar.gz") +sha256sums=('53a4875d21b8cd9fa254404923963af524479031269ebe6c1d929acdcd957281') + +package() { + cd "$srcdir/clint-$pkgver" + + python2 setup.py install --root="$pkgdir" + install -Dm644 LICENSE \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + + diff --git a/rho/PKGBUILD b/rho/PKGBUILD index 2aca0a29e..71ca6641a 100644 --- a/rho/PKGBUILD +++ b/rho/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: SpepS pkgname=rho -pkgver=1.1.12 +pkgver=1.1.13 pkgrel=1 pkgdesc="A small, very configurable console-based text editor." arch=(i686 x86_64) @@ -10,7 +10,7 @@ license=('custom:CC BY-NC-SA') depends=('ncurses') install="$pkgname.install" source=("$url$pkgname-$pkgver.tar.bz2") -md5sums=('8758d477097295da886427a54fb4bc8a') +md5sums=('730f1647e027451c417b9e7ea7c1582b') build() { cd "$srcdir/$pkgname-$pkgver" diff --git a/tagainijisho/PKGBUILD b/tagainijisho/PKGBUILD index d01e623a6..8b14603f9 100644 --- a/tagainijisho/PKGBUILD +++ b/tagainijisho/PKGBUILD @@ -2,7 +2,7 @@ pkgname=tagainijisho pkgver=0.9.2 -pkgrel=1 +pkgrel=2 pkgdesc="A Free Japanese dictionary and study assistant" arch=('i686' 'x86_64') url="http://www.tagaini.net/" @@ -14,7 +14,7 @@ md5sums=('e12ca78a3677685f1d6e89095526d840') build() { cd "$srcdir/$pkgname-$pkgver" - CFLAGS=`echo $CFLAGS | sed 's/-ffast-math//'` cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . || return 1 + CFLAGS=`echo $CFLAGS | sed 's/-ffast-math//'` cmake -DCMAKE_EXE_LINKER_FLAGS="${CMAKE_EXE_LINKER_FLAGS} -lpthread -ldl" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . || return 1 make || return 1 } diff --git a/utvideo/PKGBUILD b/utvideo/PKGBUILD index cbd3289a6..c7224d68c 100644 --- a/utvideo/PKGBUILD +++ b/utvideo/PKGBUILD @@ -1,22 +1,18 @@ # Maintainer: DrZaius pkgname=utvideo -pkgver=10.1.0 +pkgver=10.2.4 pkgrel=1 pkgdesc="Lossless video codec" arch=('i686' 'x86_64') url="http://umezawa.dyndns.info/wordpress/" license=('GPLv2') source=("http://umezawa.dyndns.info/archive/${pkgname}/${pkgname}-${pkgver}-src.zip" - 'add-pthread.patch' -) -md5sums=('a8d31053073e9da8568b4f961e9c55c6' - 'a277468c7f5805dca0104b9f8273c5c8' ) +md5sums=('b1e48aaeb4eae602cfb813c9d9fbd866') build() { cd ${srcdir}/${pkgname}-${pkgver} - patch -Np0 -i ${srcdir}/add-pthread.patch make } diff --git a/utvideo/add-pthread.patch b/utvideo/add-pthread.patch deleted file mode 100644 index 209b7a09c..000000000 --- a/utvideo/add-pthread.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- utv_core/stdafx.h.orig 2011-11-04 11:12:28.322123813 -0800 -+++ utv_core/stdafx.h 2011-11-04 11:13:09.245648380 -0800 -@@ -54,6 +54,7 @@ - #include - #include - #include -+#include - #endif - - #if defined(__APPLE__) -- 2.11.4.GIT