summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2017-04-29 12:50:36 +0200
committerMattia Rizzolo <mattia@debian.org>2017-04-29 12:50:36 +0200
commit45467d79119285e5c9d7b86799db3ffbfb0785f0 (patch)
tree0a6f3e1b5f0306b523678d1835bcf840aa49317e /debian
parent8e20b4f4a4c52f92ce29f2580084a5a97b52ee76 (diff)
Rewrite build system to use the dh sequencer. Closes: #861423
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/libstroke0-dev.dirs2
-rw-r--r--debian/libstroke0-dev.install3
-rw-r--r--debian/libstroke0.install1
-rwxr-xr-xdebian/rules85
4 files changed, 9 insertions, 82 deletions
diff --git a/debian/libstroke0-dev.dirs b/debian/libstroke0-dev.dirs
deleted file mode 100644
index 2e6d5f6..0000000
--- a/debian/libstroke0-dev.dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/lib
-usr/share/doc
diff --git a/debian/libstroke0-dev.install b/debian/libstroke0-dev.install
new file mode 100644
index 0000000..778ab09
--- /dev/null
+++ b/debian/libstroke0-dev.install
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/*/*.so
+usr/share/aclocal
diff --git a/debian/libstroke0.install b/debian/libstroke0.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/debian/libstroke0.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/debian/rules b/debian/rules
index 5fdf558..173acce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,84 +1,9 @@
#!/usr/bin/make -f
-build: build-stamp
-build-arch: build
-build-indep: build
-
-build-stamp:
- dh_testdir
- dh_autotools-dev_updateconfig
- ./configure --prefix=/usr --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
-
-# Patch the generated libtool to avoid passing -rpath when linking,
-# and to explicitly link libraries against the libraries they
-# depend on.
- sed < libtool > libtool-2 \
- -e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' -e '/^archive_cmds="/s/"$$/ \\$$deplibs"/'
- mv libtool-2 libtool
- chmod 755 libtool
-
- $(MAKE)
- touch build-stamp
-
-clean:
- dh_testdir
- rm -f build-stamp
-
- [ ! -f Makefile ] || $(MAKE) distclean
-
- dh_autotools-dev_restoreconfig
- dh_clean
-
-# Build architecture-independent files here.
-binary-indep: build
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build
-# dh_testversion
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- $(MAKE) install-exec DESTDIR=`pwd`/debian/libstroke0
-
- # now include the header files;
- $(MAKE) install-data DESTDIR=`pwd`/debian/libstroke0-dev
-
- # install the header file if the make above forgot it
- test -f debian/libstroke0-dev/usr/include/stroke.h || cp libstroke/stroke.h debian/libstroke0-dev/usr/include
-
- # now move the .so links & the .a files
- mv debian/libstroke0/usr/lib/libstroke.so debian/libstroke0-dev/usr/lib
- mv debian/libstroke0/usr/lib/libstroke.la debian/libstroke0-dev/usr/lib
- rm debian/libstroke0/usr/lib/*.a
-
- # empties dependency_libs from .la file
- # http://lists.debian.org/debian-devel/2009/08/msg00783.html
- sed -i "s,^dependency_libs=.*,dependency_libs=''," debian/libstroke0-dev/usr/lib/libstroke.la
-
- # delete libgstroke if built
- -rm debian/libstroke0-dev/usr/include/gstroke.h
- -rm debian/libstroke0-dev/usr/include/gstroke.h
- -rm debian/libstroke0/usr/lib/libgstroke*
- -rm debian/libstroke0/usr/bin/gnome_stroke_test
- -rm debian/libstroke0/usr/bin/stroke_test
- -rm debian/libstroke0-dev/usr/share/aclocal/libgstroke.m4
-
- ln -sf libstroke0 debian/libstroke0-dev/usr/share/doc/libstroke0-dev
+%:
+ dh $@ --without autoreconf
+override_dh_installdocs:
dh_installdocs -plibstroke0
- dh_installchangelogs ChangeLog -plibstroke0
- dh_strip
- dh_compress
- dh_fixperms
- dh_makeshlibs -V
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+ mkdir debian/libstroke0-dev/usr/share/doc
+ ln -sf libstroke0 debian/libstroke0-dev/usr/share/doc/libstroke0-dev