@@ -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.
@@ -1,5 +1,3 @@
-usr/lib
usr/include
usr/share/doc/libslang2-dev
usr/share/lintian/overrides
-usr/lib/pkgconfig
@@ -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
@@ -1 +0,0 @@
-lib/libslang.so.2.2.4 usr/lib/libslang.so
@@ -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.*
@@ -1 +0,0 @@
-lib/libslang.so.2.2.4 lib/libslang.so.2
@@ -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
@@ -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: