summaryrefslogtreecommitdiffstats
path: root/oss-hg/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-03-26 19:41:58 +0100
committerFlorian Pritz <f-p@gmx.at>2009-03-26 19:41:58 +0100
commit87ec3d92c79bd4d933ea2ae2ad8794aa0e5fbf60 (patch)
tree31dd05e65663cd81223cd98cf3c7b2134378b42b /oss-hg/PKGBUILD
parent60309a9f54e880f9cf0f7d2a2d56c09b673d5558 (diff)
downloadaur-packages-87ec3d92c79bd4d933ea2ae2ad8794aa0e5fbf60.tar.gz
aur-packages-87ec3d92c79bd4d933ea2ae2ad8794aa0e5fbf60.tar.xz
update
Diffstat (limited to 'oss-hg/PKGBUILD')
-rw-r--r--oss-hg/PKGBUILD70
1 files changed, 70 insertions, 0 deletions
diff --git a/oss-hg/PKGBUILD b/oss-hg/PKGBUILD
new file mode 100644
index 0000000..0267f56
--- /dev/null
+++ b/oss-hg/PKGBUILD
@@ -0,0 +1,70 @@
+# Contributor: lh <jarryson#gmail.com>
+pkgname=oss-hg
+pkgver=666
+pkgrel=1
+pkgdesc="Open Sound System UNIX audio architecture"
+arch=('i686' 'x86_64')
+url="http://developer.opensound.com/"
+license=('GPL2')
+depends=('gcc' 'make' 'kernel-headers' 'module-init-tools' 'libtool' 'sed')
+makedepends=('pkgconfig' 'gawk' 'gtk2' 'mercurial')
+provides=('oss')
+conflicts=('oss-linux' 'oss-linux-free' 'oss-testing' 'oss' 'oss-mercurial')
+install='oss.install'
+source=('oss.rm-init-scripts.patch' 'oss.rc' 'oss.install')
+md5sums=('b9a380a0ac8896390d71ac13676f27e1'
+ '8ca7cdf94c56ab02890eb4aba6a4995f'
+ '1494a2304a1eb7a1979e7e83d894c67a')
+
+optdepends=('gtk2: for graphical mixer (ossxmix)'
+ 'hal: for automatic USB audio configuration'
+ 'libflashsupport-oss: for Flash plugin support')
+
+[ "$CARCH" = "x86_64" ] && optdepends[2]='lib32-libflashsupport-oss: for Flash plugin support'
+
+_hgroot=http://mercurial.opensound.com
+_hgrepo=oss
+
+build() {
+ cd $srcdir
+
+ if [ -d ${_hgrepo} ]; then
+ cd ${srcdir}/${_hgrepo}
+ hg pull -u
+ else
+ hg clone ${_hgroot} ${_hgrepo} || return 1
+ cd ${srcdir}/${_hgrepo}
+ fi
+
+ # Avoid these flags conflicting with OSS build system.
+ unset CFLAGS
+ unset OSFLAGS
+ unset LIBRARIES
+ export NO_WARNING_CHECKS=yes
+
+ # Remove libflashsupport, as it belongs to a separate package.
+ rm -f "$srcdir/$_hgrepo/oss/lib/flashsupport.c" &> /dev/null
+
+ msg "Preparing the build environment."
+
+ # have to remove this dir. because maybe the scource is different now.
+ rm -rf $srcdir/$_hgrepo-build
+ # Create build directory and configure
+ mkdir $srcdir/$_hgrepo-build && cd srcdir/$_hgrepo-build
+ "$srcdir/$_hgrepo/configure" --enable-libsalsa=NO || return 1
+
+ msg "Building OSS."
+ make build || return 1
+
+ msg "Patching init scripts."
+ cd "$srcdir/build/prototype"
+ rm usr/lib/oss/etc/S89oss
+ patch -b -p0 < "$srcdir/oss.rm-init-scripts.patch" || return 1
+
+ msg "Copying files."
+ cp -R * "$pkgdir"
+ chmod 755 "$pkgdir/usr/sbin/" "$pkgdir/usr/lib/oss/etc/" "$pkgdir/usr/lib/oss/build/"
+ install -D -m755 "$srcdir/oss.rc" "$pkgdir/etc/rc.d/oss"
+
+}
+