updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / brlcad / brlcad.install
blobf4a73fd0a0db88c5ad5d0aa57bbee8a553730ebc
1 # arg 1:  the new package version
2 # This is to remove the old line in ld.so.conf
3 # Library path will be provided in /etc/ld.so.conf.d/brlcad.conf
4 # from now on.
5 post_install() {
6         pre_remove
9 post_upgrade() {
10         pre_remove
13 pre_remove() {
14     cat etc/ld.so.conf | grep -v '/opt/brlcad/lib' >/tmp/.pacbrlcad
15     mv /tmp/.pacbrlcad etc/ld.so.conf
16     chmod 644 etc/ld.so.conf
17     sbin/ldconfig -r .