Commit a196c58b authored by fkardame's avatar fkardame 💬

Fixed systemd

parent 3f48b5bc
Pipeline #545 failed with stage
--- a/CMakeLists.txt 2020-07-18 15:39:35.536651558 +0300
+++ b/CMakeLists.txt 2020-07-18 15:41:02.450541139 +0300
@@ -6,6 +6,8 @@
set(PROJECT_VERSION "2.0.94")
set(PACKAGE ${CMAKE_PROJECT_NAME})
+option (enable_tests "Build the package's automatic tests." ON)
+
##
## GNU standard installation directories
##
@@ -86,11 +88,13 @@
# testing & coverage
-enable_testing ()
-add_subdirectory(tests)
-find_package(CoverageReport)
-ENABLE_COVERAGE_REPORT(
- TARGETS ${SERVICE_LIB} ${SERVICE_EXEC}
- TESTS ${COVERAGE_TEST_TARGETS}
- FILTER /usr/include ${CMAKE_BINARY_DIR}/*
-)
+if (${enable_tests})
+ enable_testing ()
+ add_subdirectory(tests)
+ find_package(CoverageReport)
+ ENABLE_COVERAGE_REPORT(
+ TARGETS ${SERVICE_LIB} ${SERVICE_EXEC}
+ TESTS ${COVERAGE_TEST_TARGETS}
+ FILTER /usr/include ${CMAKE_BINARY_DIR}/*
+ )
+endif ()
......@@ -2,8 +2,8 @@
pkgname="ayatana-indicator-power-git"
_pkgname="ayatana-indicator-power"
pkgver=1
pkgrel="1"
pkgver=git_r1057
pkgrel=1
pkgdesc="Ayatana Indicator showing power state"
arch=("i686" "x86_64" "aarch64")
url="https://github.com/AyatanaIndicators"
......@@ -29,7 +29,7 @@ pkgver()
prepare()
{
cd ${_pkgname}
patch -Np1 -i ../0002_add-testing-option.patch
# patch -Np1 -i ../0002_add-testing-option.patch
}
build()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment