summarylogtreecommitdiffstats
path: root/libosl.install
diff options
context:
space:
mode:
authorDaichi Shinozaki2015-06-09 18:18:39 +0900
committerDaichi Shinozaki2015-06-09 18:18:39 +0900
commit220a97f34f6067341cd6fb7796980022fb7ddd03 (patch)
tree26e6dac01cf7340592c61fff17907c5c7191dd01 /libosl.install
downloadaur-220a97f34f6067341cd6fb7796980022fb7ddd03.tar.gz
Initial import
Diffstat (limited to 'libosl.install')
-rw-r--r--libosl.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/libosl.install b/libosl.install
new file mode 100644
index 000000000000..76989c2a903f
--- /dev/null
+++ b/libosl.install
@@ -0,0 +1,21 @@
+post_install() {
+ ldconfig
+ update_makefile_conf_path
+ echo
+ echo 'Please relogin for the changes to $OSL_HOME environment variable to take effect.'
+}
+
+post_upgrade() {
+ ldconfig
+ update_makefile_conf_path
+}
+
+update_makefile_conf_path() {
+ sed --in-place \
+ -e 's!\$(OSL_HOME)/core/osl\(.*\).1.0$!/usr/lib\1!' \
+ -e 's!\$(OSL_HOME)/std/osl\(.*\).1.0$!/usr/lib\1!' \
+ -e 's!\$(OSL_HOME)/full/osl\(.*\).1.0$!/usr/lib\1!' \
+ /usr/share/osl/makefile.conf
+}
+
+# vim:set ts=2 sw=2 et: