From 7b79ae29153ab199c26f795302c21c611a41586c Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Wed, 4 Feb 2009 19:57:53 -0800
Subject: Items for "community".

---
 abs/extra-testing/community/cksfv/PKGBUILD         | 21 +++++++
 abs/extra-testing/community/unrar/PKGBUILD         | 23 +++++++
 .../unrar/unrar-3.5.2-optimalization-fix.patch     | 12 ++++
 abs/extra-testing/community/uudeview/PKGBUILD      | 30 +++++++++
 abs/extra-testing/community/vlc/PKGBUILD           | 71 ++++++++++++++++++++++
 5 files changed, 157 insertions(+)
 create mode 100644 abs/extra-testing/community/cksfv/PKGBUILD
 create mode 100644 abs/extra-testing/community/unrar/PKGBUILD
 create mode 100644 abs/extra-testing/community/unrar/unrar-3.5.2-optimalization-fix.patch
 create mode 100644 abs/extra-testing/community/uudeview/PKGBUILD
 create mode 100644 abs/extra-testing/community/vlc/PKGBUILD

diff --git a/abs/extra-testing/community/cksfv/PKGBUILD b/abs/extra-testing/community/cksfv/PKGBUILD
new file mode 100644
index 0000000..b82aa60
--- /dev/null
+++ b/abs/extra-testing/community/cksfv/PKGBUILD
@@ -0,0 +1,21 @@
+# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
+# Contributor: Wijnand Modderman <wijanand+aur@archlinux.nl>
+
+pkgname=cksfv
+pkgver=1.3.12
+pkgrel=1
+pkgdesc="SFV (Simple File Verification) Checker"
+arch=('i686' 'x86_64')
+url="http://zakalwe.virtuaalipalvelin.net/~shd/foss/cksfv/"
+license=('GPL')
+depends=('glibc')
+source=(http://zakalwe.virtuaalipalvelin.net/~shd/foss/cksfv/files/$pkgname-$pkgver.tar.bz2)
+md5sums=('1d277da8bafaec9ddadb92ece4999590')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  ./configure --prefix=/usr --package-prefix=$startdir/pkg
+  make || return 1
+  make install
+  chmod 644 $startdir/pkg/usr/share/man/man1/$pkgname.1
+}
diff --git a/abs/extra-testing/community/unrar/PKGBUILD b/abs/extra-testing/community/unrar/PKGBUILD
new file mode 100644
index 0000000..6b68616
--- /dev/null
+++ b/abs/extra-testing/community/unrar/PKGBUILD
@@ -0,0 +1,23 @@
+# $Id: PKGBUILD 18913 2008-11-10 11:16:31Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: dorphell <dorphell@gmx.net>
+
+pkgname=unrar
+pkgver=3.8.5
+pkgrel=1
+pkgdesc="The RAR uncompression program"
+arch=('i686' 'x86_64')
+depends=('gcc-libs')
+url="http://rarlab.com"
+license=('custom')
+replaces=('rar')
+source=(http://www.rarlab.com/rar/unrarsrc-${pkgver}.tar.gz)
+md5sums=('875688e6a144a3f75d2a6a0da3e43f8b')
+
+build() {
+  cd ${srcdir}/${pkgname}
+  make -f makefile.unix
+  install -Dm755 unrar ${pkgdir}/usr/bin/unrar
+  # install license
+  install -Dm644 license.txt ${pkgdir}/usr/share/licenses/$pkgname/license.txt
+}
diff --git a/abs/extra-testing/community/unrar/unrar-3.5.2-optimalization-fix.patch b/abs/extra-testing/community/unrar/unrar-3.5.2-optimalization-fix.patch
new file mode 100644
index 0000000..2ed2e6e
--- /dev/null
+++ b/abs/extra-testing/community/unrar/unrar-3.5.2-optimalization-fix.patch
@@ -0,0 +1,12 @@
+diff -Naur unrar.orig/makefile.unix unrar/makefile.unix
+--- unrar.orig/makefile.unix	2005-05-27 21:53:56.000000000 +0000
++++ unrar/makefile.unix	2005-05-27 21:54:16.000000000 +0000
+@@ -7,7 +7,7 @@
+ 
+ # Linux using GCC
+ CXX=g++
+-CXXFLAGS=-O2
++CXXFLAGS=${CFLAGS}
+ DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+ STRIP=strip
+ 
diff --git a/abs/extra-testing/community/uudeview/PKGBUILD b/abs/extra-testing/community/uudeview/PKGBUILD
new file mode 100644
index 0000000..cdb3a81
--- /dev/null
+++ b/abs/extra-testing/community/uudeview/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD,v 1.5 2008/09/23 12:49:17 sergej Exp $
+# Maintainer: Sergej Pupykin <sergej@aur.archlinux.org>
+# Maintainer: kmaster <kmaster12@sasktel.net>
+
+pkgname=uudeview
+pkgver=0.5.20
+pkgrel=6
+pkgdesc="UUDeview helps transmitting & recieving binary files using mail or newsgroups. Includes library files."
+arch=('i686' 'x86_64')
+url="http://www.fpx.de/fp/Software/UUDeview/"
+license=('GPL')
+optdepends=('tk: for GUI')
+source=(http://www.fpx.de/fp/Software/UUDeview/download/$pkgname-$pkgver.tar.gz)
+md5sums=('0161abaec3658095044601eae82bbc5b')
+
+build() {
+  cd $startdir/src/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make || return 1
+  make prefix=$startdir/pkg/usr install || return 1
+  mkdir -p $startdir/pkg/usr/lib/uudeview && \
+  mkdir -p $startdir/pkg/usr/include/uudeview || return 1
+
+  cd $startdir/src/uudeview-$pkgver/uulib
+  ./configure --prefix=/usr
+  make || return 1
+  cp -v *.o $startdir/pkg/usr/lib/uudeview && \
+  cp -v *.a $startdir/pkg/usr/lib/uudeview && \
+  cp -v *.h $startdir/pkg/usr/include/uudeview
+}
diff --git a/abs/extra-testing/community/vlc/PKGBUILD b/abs/extra-testing/community/vlc/PKGBUILD
new file mode 100644
index 0000000..77e21f7
--- /dev/null
+++ b/abs/extra-testing/community/vlc/PKGBUILD
@@ -0,0 +1,71 @@
+# $Id: PKGBUILD 24027 2009-01-11 23:38:33Z eric $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
+
+pkgname=vlc
+pkgver=0.9.8a
+pkgrel=4
+pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
+arch=('i686' 'x86_64')
+url="http://www.videolan.org/vlc/"
+license=('GPL2')
+depends=('libmad' 'libmpeg2' 'ffmpeg>=20081220' 'x264>=20090108' 'fluidsynth' \
+         'libdvbpsi' 'fribidi' 'sysfsutils' 'libdvdnav' \
+         'libmatroska' 'zvbi' 'libdvdread' 'libmpcdec' \
+         'libdca' 'libxml2' 'lirc-utils' 'libcddb' 'libraw1394' \
+         'smbclient' 'taglib'  'libmodplug' 'avahi' 'libv4l' \
+         'sdl_image' 'libshout' 'lua' 'qt' 'a52dec' 'libgcrypt')
+makedepends=('pkgconfig' 'live-media>=2008.09.02')
+optdepends=('libnotify')
+options=('!libtool' 'force')
+source=(http://download.videolan.org/pub/videolan/vlc/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('8ffa2ff763badd5de7592004d8d69a63')
+
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  sed -i -e 's:#include <vlc\/vlc.h>:#include <vlc/vlc.h> \n #include <locale.h>: ' modules/misc/freetype.c
+  sed -i -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/TTF/VeraBd.ttf:' modules/misc/freetype.c
+  [ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --enable-live555 --with-live555-tree=/usr/lib/live-media"
+  [ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install"
+  ./configure --prefix=/usr \
+              --enable-dvdread \
+              --enable-dvdnav \
+              --enable-madi \
+              --enable-ffmpeg \
+              --disable-rpath \
+              --enable-qt4 \
+              --enable-faad \
+              --enable-alsa \
+              --enable-skins2 \
+              --enable-dvb \
+              --enable-dmo \
+              --with-ffmpeg-faac \
+              --with-ffmpeg-vorbis \
+              --with-ffmpeg-dts \
+              --with-ffmpeg-ogg \
+              --with-ffmpeg-theora \
+              --enable-v4l \
+              --enable-theora \
+              --enable-flac \
+              --enable-snapshot \
+              --enable-hal \
+              --enable-dbus \
+              --enable-ogg \
+              --enable-dbus-control \
+              --enable-shared \
+              --enable-nls \
+              --enable-lirc \
+              --enable-shout \
+              --enable-pvr \
+              --enable-release \
+              --program-suffix= \
+              --with-dv-raw1394=/usr/include/libraw1394 ${EXTRAFEATURES} || return 1
+  make || return 1
+  make DESTDIR=${pkgdir}/ install || return 1
+  
+  for res in 16 32 48 128; do
+    install -D -m644 ${srcdir}/vlc-${pkgver}/share/vlc${res}x${res}.png \
+		     ${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1
+  done
+  rm -rf ${pkgdir}/usr/lib/mozilla
+}
-- 
cgit v0.12

