[SCM] musescore/master: Modernize debian/rules and use cmake directly
jcowgill at users.alioth.debian.org
jcowgill at users.alioth.debian.org
Mon Jul 11 10:37:16 UTC 2016
The following commit has been merged in the master branch:
commit 6929cf5591bbbf766b50964772f9849f15f4a1a0
Author: James Cowgill <james410 at cowgill.org.uk>
Date: Thu Jul 7 22:12:22 2016 +0200
Modernize debian/rules and use cmake directly
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..2b7ba78
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+share/locale/*.qm
diff --git a/debian/musescore-common.install b/debian/musescore-common.install
index 2b68c7a..528fb2b 100644
--- a/debian/musescore-common.install
+++ b/debian/musescore-common.install
@@ -1,2 +1,2 @@
-#debian/musescore/usr/share/mscore* usr/share
fonts/mscore/mscore.otf /usr/share/fonts/opentype
+usr/share/mscore-* /usr/share
diff --git a/debian/musescore.install b/debian/musescore.install
new file mode 100644
index 0000000..2f44271
--- /dev/null
+++ b/debian/musescore.install
@@ -0,0 +1,5 @@
+usr/bin
+usr/share/applications
+usr/share/icons
+usr/share/man
+usr/share/mime
diff --git a/debian/rules b/debian/rules
index bb837a9..ea51b1e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,35 +1,17 @@
#!/usr/bin/make -f
# -*- makefile -*-
-CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
-CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
-LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
-
%:
- dh $@
-
-override_dh_auto_build:
- DEB_BUILD_HARDENING=1 $(MAKE) PREFIX=/usr release
+ dh $@ --buildsystem=cmake --parallel
-override_dh_auto_clean:
- -rm -rf build.release
- -rm -f share/locale/*.qm
- -rm -f build/musescore.1
+override_dh_auto_configure:
+ dh_auto_configure -- -DCMAKE_SKIP_RPATH=ON
-override_dh_auto_install:
- DEB_BUILD_HARDENING=1 $(MAKE) \
- PREFIX=/usr \
- DESTDIR=$(CURDIR)/debian/musescore \
- UPDATE_CACHE="FALSE" \
- NO_RPATH="TRUE" \
- install
+override_dh_auto_build:
+ dh_auto_build -- lrelease all
override_dh_install:
dh_install
- -mkdir -p $(CURDIR)/debian/musescore-common/usr/share
- -mv $(CURDIR)/debian/musescore/usr/share/mscore* $(CURDIR)/debian/musescore-common/usr/share/
- -rm -r $(CURDIR)/debian/musescore/usr/share/mscore*
cd $(CURDIR)/debian/musescore-common/usr/share && ln -s mscore-* mscore
.PHONY: get-orig-source
--
musescore packaging
More information about the pkg-multimedia-commits
mailing list