diff options
author | Fantix King | 2012-10-29 08:00:46 +0000 |
---|---|---|
committer | Fantix King | 2015-11-07 16:08:50 +0800 |
commit | a4e48edab6a9b33f63006b7be45fd87f808a61bc (patch) | |
tree | b59425c6bab3b5d2402e96befac1749fce5f8809 /libx32-openssl.install | |
parent | 787c35e7f613bda2c18372edc700bc39d94a0912 (diff) | |
download | aur-a4e48edab6a9b33f63006b7be45fd87f808a61bc.tar.gz |
1.0.1.c-1.2
Diffstat (limited to 'libx32-openssl.install')
-rw-r--r-- | libx32-openssl.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libx32-openssl.install b/libx32-openssl.install new file mode 100644 index 000000000000..860d03582bca --- /dev/null +++ b/libx32-openssl.install @@ -0,0 +1,21 @@ +post_install() { + mv /usr/include/openssl/opensslconf.h /usr/include/openssl/opensslconf-64.h + ln -s opensslconf-stub.h /usr/include/openssl/opensslconf.h +} + +post_upgrade() { + if [ ! -L /usr/include/openssl/opensslconf.h ]; then + post_install + elif [ ${1::-2} != ${2::-2} ]; then + echo WARNING: libx32-openssl is upgraded before openssl, + echo WARNING: you probably need to reinstall libx32-openssl. + fi +} + +post_remove() { + if [ -L /usr/include/openssl/opensslconf.h ]; then + rm /usr/include/openssl/opensslconf.h + mv /usr/include/openssl/opensslconf-64.h /usr/include/openssl/opensslconf.h + fi +} + |