summarylogtreecommitdiffstats
path: root/oss.install
diff options
context:
space:
mode:
authorAlex Wiggins2015-06-08 21:29:49 +0100
committerAlex Wiggins2015-06-08 21:29:49 +0100
commit8c8fd748133454638133536326ed80a6efb918b6 (patch)
tree79d7bc22bd9a9bf2d35c494dc55d9b5855b7c307 /oss.install
downloadaur-8c8fd748133454638133536326ed80a6efb918b6.tar.gz
Initial AUR4 import - version 2011-3
Diffstat (limited to 'oss.install')
-rw-r--r--oss.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/oss.install b/oss.install
new file mode 100644
index 000000000000..672d636447b0
--- /dev/null
+++ b/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."
+}
+