aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-01 16:17:39 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-01 16:17:39 +0100
commitd6890cadd38244f27eac901001eb0b2811d56412 (patch)
tree2a0738e6da2d8ecb988dd5957ca674b92546ca66 /debian/rules
parentefe2ae3d1e13d0e1aa188503e030d481cebcc5c1 (diff)
initial logic for taler-merchant Debian package
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..9161cd78
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+
+SHELL := sh -e
+
+include /usr/share/dpkg/architecture.mk
+
+%:
+ dh ${@}
+
+override_dh_auto_configure-arch:
+ dh_auto_configure -- --disable-rpath --with-microhttpd=yes $(shell dpkg-buildflags --export=configure)
+
+override_dh_auto_configure-indep:
+
+override_dh_auto_build-indep:
+
+override_dh_auto_test:
+ # Disabling test suite, incomplete
+
+override_dh_auto_install-arch:
+ dh_auto_install
+
+ # Create config file
+ mkdir -p debian/tmp/etc
+ cp debian/etc/taler.conf debian/tmp/etc/
+
+ # Removing useless files
+ rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \
+ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/taler/*.la \
+ debian/tmp/usr/share/doc/taler/COPYING
+
+override_dh_auto_install-indep:
+
+override_dh_auto_clean:
+ dh_auto_clean
+
+# Remove files already present in libtalerexchange from main taler-exchange package
+override_dh_install:
+ dh_install
+ cd debian/libtalerexchange; find . -type f -exec rm -f ../taler-exchange/{} \;