diff -urN old/slang2-2.2.4//debian/control slang2-2.2.4//debian/control
--- old/slang2-2.2.4//debian/control	2011-04-02 01:09:15.000000000 +0300
+++ slang2-2.2.4//debian/control	2011-08-22 23:05:18.977757283 +0300
@@ -2,13 +2,14 @@
 Section: devel
 Priority: optional
 Maintainer: Alastair McKinstry <mckinstry@debian.org>
-Build-Depends: debhelper (>= 7.0.50~), docbook-to-man, libpcre3-dev, libpng12-dev, zlib1g-dev, libonig-dev, libncurses-dev, chrpath
+Build-Depends: debhelper (>= 8.1.3), docbook-to-man, libpcre3-dev, libpng12-dev, zlib1g-dev, libonig-dev, libncurses-dev, chrpath
 Standards-Version: 3.9.1
 
 Package: libslang2-dev
 Section: libdevel
 Architecture: any
 Depends: libslang2 (= ${binary:Version}), libc6-dev | libc-dev, libpng-dev, ${misc:Depends}
+Multi-Arch: same
 Conflicts: slang1-utf8-dev, slang-dev6, slang0.99.34-dev (<< 0.99.38-2.3)
 Description: S-Lang programming library, development version
  S-Lang is a C programmer's library that includes routines for the rapid
@@ -35,6 +36,8 @@
 Priority: required
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
 Recommends: libpng12-0
 Description: S-Lang programming library - runtime version
  S-Lang is a C programmer's library that includes routines for the rapid
@@ -73,6 +76,7 @@
 Priority: optional
 Architecture: any
 Depends: ${shlibs:Depends}, libslang2-modules (= ${binary:Version}) , ${misc:Depends}
+Multi-Arch: foreign
 Description: Interpreter for S-Lang language
  S-Lang is a C programmer's library that includes routines for the rapid
  development of sophisticated, user friendly, multi-platform applications.
diff -urN old/slang2-2.2.4//debian/libslang2-dev.dirs slang2-2.2.4//debian/libslang2-dev.dirs
--- old/slang2-2.2.4//debian/libslang2-dev.dirs	2010-03-18 20:37:01.000000000 +0200
+++ slang2-2.2.4//debian/libslang2-dev.dirs	2011-08-22 21:34:44.027754777 +0300
@@ -1,5 +1,3 @@
-usr/lib
 usr/include
 usr/share/doc/libslang2-dev
 usr/share/lintian/overrides
-usr/lib/pkgconfig
diff -urN old/slang2-2.2.4//debian/libslang2-dev.install slang2-2.2.4//debian/libslang2-dev.install
--- old/slang2-2.2.4//debian/libslang2-dev.install	2011-04-01 17:03:38.000000000 +0300
+++ slang2-2.2.4//debian/libslang2-dev.install	2011-08-22 23:14:59.177757551 +0300
@@ -14,6 +14,7 @@
 doc/text/cslang.txt	usr/share/doc/libslang2-dev
 src/slang.h	usr/include
 src/slcurses.h	usr/include
-src/objs/libslang.a	usr/lib
-slang.pc		usr/lib/pkgconfig
 debian/lintian/libslang2-dev	usr/share/lintian/overrides
+debian/tmp/usr/lib/*/libslang.a	
+debian/tmp/usr/lib/*/libslang.so	
+debian/tmp/usr/lib/*/pkgconfig/slang.pc
diff -urN old/slang2-2.2.4//debian/libslang2-dev.links slang2-2.2.4//debian/libslang2-dev.links
--- old/slang2-2.2.4//debian/libslang2-dev.links	2011-04-12 12:47:28.000000000 +0300
+++ slang2-2.2.4//debian/libslang2-dev.links	1970-01-01 02:00:00.000000000 +0200
@@ -1 +0,0 @@
-lib/libslang.so.2.2.4	usr/lib/libslang.so
diff -urN old/slang2-2.2.4//debian/libslang2.install slang2-2.2.4//debian/libslang2.install
--- old/slang2-2.2.4//debian/libslang2.install	2011-04-01 17:03:52.000000000 +0300
+++ slang2-2.2.4//debian/libslang2.install	2011-08-22 23:04:54.337757271 +0300
@@ -1,7 +1,7 @@
-src/elfobjs/libslang.so.2*	lib
 NEWS	usr/share/doc/libslang2
 README	usr/share/doc/libslang2
 UPGRADE.txt usr/share/doc/libslang2
 doc/text/slang.txt	usr/share/doc/libslang2
 doc/text/slangfun.txt	usr/share/doc/libslang2
 debian/lintian/libslang2		usr/share/lintian/overrides
+debian/tmp/lib/*/libslang.so.*
diff -urN old/slang2-2.2.4//debian/libslang2.links slang2-2.2.4//debian/libslang2.links
--- old/slang2-2.2.4//debian/libslang2.links	2011-04-12 12:47:13.000000000 +0300
+++ slang2-2.2.4//debian/libslang2.links	1970-01-01 02:00:00.000000000 +0200
@@ -1 +0,0 @@
-lib/libslang.so.2.2.4	lib/libslang.so.2
diff -urN old/slang2-2.2.4//debian/libslang2-modules.install slang2-2.2.4//debian/libslang2-modules.install
--- old/slang2-2.2.4//debian/libslang2-modules.install	2011-04-01 17:57:26.000000000 +0300
+++ slang2-2.2.4//debian/libslang2-modules.install	2011-08-22 23:04:06.867757249 +0300
@@ -1 +1 @@
-debian/tmp/usr/lib/slang/v2/modules/* /usr/lib/slang/v2/modules
+debian/tmp/usr/lib/*/slang/v2/modules/* /usr/lib/slang/v2/modules
diff -urN old/slang2-2.2.4//debian/rules slang2-2.2.4//debian/rules
--- old/slang2-2.2.4//debian/rules	2011-04-25 04:19:53.000000000 +0300
+++ slang2-2.2.4//debian/rules	2011-08-22 23:21:07.327757721 +0300
@@ -14,6 +14,9 @@
         CFLAGS += -O2
 endif
 
+override_dh_auto_configure:
+	dh_auto_configure -- --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
+
 override_dh_auto_build:
 	dh_auto_build
 	$(MAKE) -C src static
@@ -27,7 +30,11 @@
 override_dh_auto_install:
 	dh_auto_install
 	cp src/slang.ver debian/libslang2-pic/usr/lib/libslang_pic.map
-	chrpath -d debian/tmp/usr/lib/slang/v2/modules/*.so
+	mkdir -p debian/tmp/lib/$(DEB_HOST_MULTIARCH)
+	cp -a src/objs/libslang.a debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
+	mv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libslang.so.* debian/tmp/lib/$(DEB_HOST_MULTIARCH)
+	ln -sf /lib/$(DEB_HOST_MULTIARCH)/libslang.so.2 debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libslang.so
+	chrpath -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/slang/v2/modules/*.so
 	chrpath -d debian/tmp/usr/bin/slsh
 
 override_dh_installchangelogs:
