diff options
Diffstat (limited to 'debian/libnx-x11.postinst')
-rwxr-xr-x | debian/libnx-x11.postinst | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/debian/libnx-x11.postinst b/debian/libnx-x11.postinst index 514833ca5..f5840547d 100755 --- a/debian/libnx-x11.postinst +++ b/debian/libnx-x11.postinst @@ -24,15 +24,17 @@ case "$1" in ### multiarch support into the Debian source package of ### nx-libs. if dpkg-architecture -qDEB_BUILD_MULTIARCH 1>/dev/null 2>/dev/null; then - rm -f /usr/lib/nx/X11/Xinerama/libNX_X11.so.6 - rm -f /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6 libdir=/usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH) - if test -e $libdir/libX11.so.6; then - ln -s $libdir/libX11.so.6 /usr/lib/nx/X11/Xinerama/libNX_X11.so.6 - fi - if test -e $libdir/libXext.so.6; then - ln -s $libdir/libXext.so.6 /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6 - fi + else + libdir=/usr/lib + fi + rm -f /usr/lib/nx/X11/Xinerama/libNX_X11.so.6 + rm -f /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6 + if test -e $libdir/libX11.so.6; then + ln -s $libdir/libX11.so.6 /usr/lib/nx/X11/Xinerama/libNX_X11.so.6 + fi + if test -e $libdir/libXext.so.6; then + ln -s $libdir/libXext.so.6 /usr/lib/nx/X11/Xinerama/libNX_Xext.so.6 fi ;; |