[SCM] libde265/master: Shorten debian/rules, use DH short syntax
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Mon Mar 31 13:11:52 UTC 2014
The following commit has been merged in the master branch:
commit 0a4fb42f6953d9e0109758a1e3c25e7204d13ad0
Author: Alessio Treglia <alessio at debian.org>
Date: Mon Mar 31 14:11:39 2014 +0100
Shorten debian/rules, use DH short syntax
diff --git a/debian/rules b/debian/rules
index 831060f..454ddb7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,80 +1,17 @@
#!/usr/bin/make -f
#export DH_VERBOSE=1
-DEBIAN := $(shell pwd)/debian
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- aclocal
- autoheader
- autoreconf -i --force
- autoconf
- automake --gnu --add-missing
- # Add here commands to configure the package.
- ./configure --prefix=/usr
- touch configure-stamp
-
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
-
- touch $@
-
-clean:
- dh_testdir
- if [ -f build-stamp ]; then $(MAKE) clean ; fi
- rm -f configure-stamp
- rm -f build-stamp
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- # Add here commands to install the package into debian/libde265.
- $(MAKE) DESTDIR=$(DEBIAN)/tmp install
-
- mv $(DEBIAN)/tmp/usr/bin/dec265 $(DEBIAN)/tmp/usr/bin/libde265-dec265
- if [ -e "$(DEBIAN)/tmp/usr/bin/sherlock265" ]; then \
- mv $(DEBIAN)/tmp/usr/bin/sherlock265 $(DEBIAN)/tmp/usr/bin/libde265-sherlock265; \
+%:
+ dh --with autoreconf --parallel
+
+override_dh_auto_install:
+ dh_auto_install
+ cd $(CURDIR)/debian/tmp/usr/bin/ && mv dec265 libde265-dec265
+ if [ -e "$(CURDIR)/debian/tmp/usr/bin/sherlock265" ]; then \
+ cd $(CURDIR)/debian/tmp/usr/bin/ && mvsherlock265 \
+ libde265-sherlock265; \
fi
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_install --sourcedir=$(DEBIAN)/tmp
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_installinit
- dh_installlogrotate
- dh_installmenu
- dh_link
+override_dh_strip:
dh_strip --dbg-package=libde265-dbg -Xlibde265-dec265 -Xlibde265-sherlock265
- dh_strip
- dh_compress
- dh_fixperms
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
-
+ dh_strip --remaining-packages
--
libde265 packaging
More information about the pkg-multimedia-commits
mailing list