mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
Another attempt to get the deb to build on launchpad
This commit is contained in:
parent
b2aba2bac2
commit
dc25e1efe7
16
debian/CMakeLists.txt
vendored
16
debian/CMakeLists.txt
vendored
@ -4,13 +4,17 @@ execute_process(COMMAND date "+%a, %-d %b %Y %H:%M:%S %z"
|
|||||||
OUTPUT_VARIABLE DEB_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
OUTPUT_VARIABLE DEB_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
|
||||||
set(DEB_DIST "unstable" CACHE STRING "Distribution to set in the .deb changelog")
|
set(DEB_DIST "unstable" CACHE STRING "Distribution to set in the .deb changelog")
|
||||||
|
set(DEB_REWRITE_RULES ON CACHE BOOL "Rewrite the debian rules file from rules.in")
|
||||||
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/changelog)
|
${CMAKE_CURRENT_SOURCE_DIR}/changelog)
|
||||||
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/rules.in
|
if(DEB_REWRITE_RULES)
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/rules @ONLY)
|
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/rules.in
|
||||||
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/rules
|
${CMAKE_CURRENT_BINARY_DIR}/rules @ONLY)
|
||||||
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/
|
file(REMOVE ${CMAKE_CURRENT_SOURCE_DIR}/rules)
|
||||||
FILE_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/rules
|
||||||
GROUP_EXECUTE GROUP_READ)
|
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/
|
||||||
|
FILE_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
||||||
|
GROUP_EXECUTE GROUP_READ)
|
||||||
|
endif(DEB_REWRITE_RULES)
|
||||||
|
4
debian/rules.in
vendored
4
debian/rules.in
vendored
@ -7,7 +7,9 @@ configure-stamp:
|
|||||||
cd bin && cmake .. \
|
cd bin && cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/clementine/usr \
|
-DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/clementine/usr \
|
||||||
-DBUNDLE_PROJECTM_PRESETS=OFF \
|
-DBUNDLE_PROJECTM_PRESETS=OFF \
|
||||||
-DBUILDBOT_REVISION=@BUILDBOT_REVISION@
|
-DBUILDBOT_REVISION=@BUILDBOT_REVISION@ \
|
||||||
|
-DDEB_DIST=@DEB_DIST@ \
|
||||||
|
-DDEB_REWRITE_RULES=OFF
|
||||||
touch configure-stamp
|
touch configure-stamp
|
||||||
|
|
||||||
build: build-stamp
|
build: build-stamp
|
||||||
|
Loading…
Reference in New Issue
Block a user