summaryrefslogtreecommitdiff
path: root/community-testing/oss
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-06 00:01:51 +0000
committerroot <root@rshg054.dnsready.net>2012-07-06 00:01:51 +0000
commit810a5a6e8edafe2550300c5030083669db6e3973 (patch)
tree67bce9a7079962a26b9f1d156941e8e4a3cda92c /community-testing/oss
parent7f6f69dc52c8601768ba48fa7b69507a80d532cb (diff)
Fri Jul 6 00:01:50 UTC 2012
Diffstat (limited to 'community-testing/oss')
-rw-r--r--community-testing/oss/PKGBUILD24
1 files changed, 19 insertions, 5 deletions
diff --git a/community-testing/oss/PKGBUILD b/community-testing/oss/PKGBUILD
index ca51c3cad..9ec64590e 100644
--- a/community-testing/oss/PKGBUILD
+++ b/community-testing/oss/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 72591 2012-06-17 08:35:07Z bluewind $
+# $Id: PKGBUILD 73269 2012-07-04 21:23:35Z dreisner $
# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
@@ -6,7 +6,7 @@
pkgbase=oss
pkgname=(oss libflashsupport-oss)
pkgver=4.2_2006
-pkgrel=3
+pkgrel=4
arch=('i686' 'x86_64')
url="http://developer.opensound.com/"
license=('GPL2')
@@ -50,6 +50,10 @@ build() {
mkdir build && cd build
"${srcdir}/${_dir}/configure" --enable-libsalsa=NO --regparm
+ # ossvermagic hardcodes /lib/modules *grumble*
+ sed -i 's|/lib/modules|/usr&|' \
+ os_cmd/Linux/ossvermagic/ossvermagic.c
+
msg "Building OSS."
make build
@@ -62,9 +66,19 @@ build() {
patch -p0 -i "${srcdir}/remove-hal.patch"
rm -rf usr/lib/oss/scripts/oss_usb-create-devices usr/lib/oss/scripts/90-oss_usb-create-device.fdi
- sed -i 's#/lib/modules/$KERNEL_VERSION/kernel/#/lib/modules/$KERNEL_VERSION/extramodules/kernel/#g' usr/sbin/soundon
- sed -i 's#/lib/modules/$UNAME/kernel/#/lib/modules/$UNAME/extramodules/kernel/#g' usr/lib/oss/build/install.sh
- sed -i 's#mkdir /lib/modules#mkdir -p /lib/modules#' usr/lib/oss/build/install.sh
+ # fix kernel module directories
+ sed -i 's#/lib/modules/$KERNEL_VERSION/kernel/#/usr/lib/modules/$KERNEL_VERSION/extramodules/kernel/#g' usr/sbin/soundon
+ sed -i 's#/lib/modules/$UNAME/kernel/#/usr/lib/modules/$UNAME/extramodules/kernel/#g' usr/lib/oss/build/install.sh
+ sed -i 's#mkdir /lib/modules#mkdir -p /usr/lib/modules#' usr/lib/oss/build/install.sh
+ sed -i 's#mkdir \(/usr/lib/modules/$UNAME/extramodules/kernel/oss\)#mkdir -p \1#' usr/lib/oss/build/install.sh
+ sed -i 's#\([= ]\)/lib/modules#\1/usr/lib/modules#g' \
+ usr/lib/oss/build/install.sh \
+ usr/lib/oss/scripts/restore_drv.sh \
+ usr/lib/oss/scripts/setup-alsa.sh \
+ usr/lib/oss/scripts/remove_drv.sh \
+ usr/lib/oss/build/Makefile.tmpl \
+ usr/lib/oss/build/Makefile.osscore \
+ usr/lib/oss/cuckoo/Makefile
}
package_oss() {