summaryrefslogtreecommitdiff
path: root/community-staging/oss/oss.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-11 15:22:39 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-11 15:22:39 -0300
commitd9929db3b4ad2dfeeb19ad71f6016eb8122d0208 (patch)
tree72944f18f0c554390a9ced86c8a8e2c06ce6cc47 /community-staging/oss/oss.install
parent54452120abed3fa83e394e89110859525788c0ea (diff)
parent306ac55c1e99cfb5801ef0d9acf2a11d3994d80d (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/hostapd/PKGBUILD extra/samba/PKGBUILD staging/ffmpeg/PKGBUILD
Diffstat (limited to 'community-staging/oss/oss.install')
-rw-r--r--community-staging/oss/oss.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/community-staging/oss/oss.install b/community-staging/oss/oss.install
new file mode 100644
index 000000000..672d63644
--- /dev/null
+++ b/community-staging/oss/oss.install
@@ -0,0 +1,30 @@
+post_install() {
+ echo "Running OSS install script..."
+ sh /usr/lib/oss/build/install.sh &>/dev/null
+ echo
+ echo " Note that OSS can't currently work together with kernel"
+ echo " ALSA modules, so they were moved out by the OSS install"
+ echo " scripts. If you want the ALSA kernel modules back, you can"
+ echo " just remove this package using pacman."
+}
+
+post_upgrade() {
+ echo "Running OSS update script..."
+ sh /usr/lib/oss/build/install.sh &>/dev/null
+
+ if [[ $(vercmp $2 4.2_2006) == "-1" ]]; then
+ echo "libflashsupport.so has been split into a seperate package."
+ echo "If you want flash to use oss, please install libflashsupport-oss"
+ fi
+}
+
+pre_remove() {
+ # Restore any replaced ALSA drivers.
+ sh /usr/lib/oss/scripts/restore_drv.sh
+}
+
+post_remove() {
+ echo " Open Sound System was now removed, and the ALSA kernel"
+ echo " modules were restored."
+}
+