From 70e3417a00d06c1d5e19d7cc9d8fce647348f39c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 5 Dec 2018 11:34:25 +0100 Subject: [PATCH] build: add dsc target MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit to build a source package Signed-off-by: Fabian Grünbichler --- Makefile | 32 +++++++++++++++++++++++--------- debian/source/lintian-overrides | 2 ++ 2 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 debian/source/lintian-overrides diff --git a/Makefile b/Makefile index c92b30b3..b4ba1c15 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,10 @@ PACKAGE=libjs-extjs PKGVER=6.0.1 PKGREL=2 +BUILD_DIR=${PACKAGE}-${PKGVER} + DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb +DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc # EXTJSDIR=ext-6.0.1 # wget http://cdn.sencha.com/ext/gpl/ext-6.0.1-gpl.zip @@ -24,16 +27,27 @@ WWWEXT6DIR=${DESTDIR}/usr/share/javascript/extjs all: ${EXTDATA} +${BUILD_DIR}: debian extjs + rm -rf $@ $@.tmp + mkdir $@.tmp + rsync -a debian/ $@.tmp/debian + mkdir $@.tmp/extjs + rsync -a extjs/build/ $@.tmp/extjs/build + cp Makefile $@.tmp/ + cp extjs/licenses/license.txt $@.tmp/debian/copyright + mv $@.tmp $@ + .PHONY: deb deb: ${DEB} -${DEB}: - rm -rf build - mkdir build - rsync -a debian/ build/debian - rsync -a extjs/ build/extjs - cp Makefile build/ - cp extjs/licenses/license.txt build/debian/copyright - cd build; dpkg-buildpackage -b -us -uc +${DEB}: ${BUILD_DIR} + cd ${BUILD_DIR}; dpkg-buildpackage -b -us -uc + lintian $@ + +.PHONY: dsc +dsc: ${DSC} +${DSC}: ${BUILD_DIR} + cd ${BUILD_DIR}; tar czf ../${PACKAGE}_${PKGVER}.orig.tar.gz * + cd ${BUILD_DIR}; dpkg-buildpackage -S -us -uc -nc -d lintian $@ .PHONY: install @@ -53,7 +67,7 @@ distclean: clean .PHONY: clean clean: - rm -rf ./build *.deb *.changes *.buildinfo + rm -rf ${BUILD_DIR} ${BUILD_DIR}.tmp *.deb *.changes *.buildinfo *.orig.tar.* *.dsc *.debian.tar.* find . -name '*~' -exec rm {} ';' .PHONY: dinstall diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 00000000..9059b79f --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,2 @@ +# minified files that we want to ship +libjs-extjs source: source-is-missing extjs/build/* -- 2.39.2