diff options
author | Daichi Shinozaki | 2015-06-09 18:18:39 +0900 |
---|---|---|
committer | Daichi Shinozaki | 2015-06-09 18:18:39 +0900 |
commit | 220a97f34f6067341cd6fb7796980022fb7ddd03 (patch) | |
tree | 26e6dac01cf7340592c61fff17907c5c7191dd01 /libosl.install | |
download | aur-220a97f34f6067341cd6fb7796980022fb7ddd03.tar.gz |
Initial import
Diffstat (limited to 'libosl.install')
-rw-r--r-- | libosl.install | 21 |
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: |