diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -2,7 +2,7 @@ pkgname=cherrytree-git _pkgname="${pkgname%%-git}" -pkgver=0.99.28.r0.g4d0eba74 +pkgver=0.99.29.r13.gcf073985 pkgrel=1 pkgdesc="Hierarchical note-taking application, git version" arch=('x86_64') @@ -41,8 +41,8 @@ build() { cmake \ -B "${_pkgname}/build" \ -S "${_pkgname}" \ - -DBUILD_GMOCK:BOOL='OFF' \ - -DBUILD_TESTING:BOOL='OFF' \ + -DINSTALL_GTEST:BOOL='OFF' \ + -DAUTO_RUN_TESTING:BOOL='OFF' \ -Wno-dev make -C "${_pkgname}/build" } @@ -50,15 +50,10 @@ build() { # NOTE: In order to run tests in a clean chroot, you must allow it access your X server: # xhost +local: # https://wiki.archlinux.org/index.php/chroot#Run_graphical_applications_from_chroot -#check() { -# export DISPLAY=:0 -# cmake \ -# -B "${_pkgname}/test-build" \ -# -S "${_pkgname}" \ -# -DINSTALL_GTEST:BOOL='OFF' \ -# -Wno-dev -# make -C "${_pkgname}/test-build/tests" -#} +#export DISPLAY=:0 +check() { + ./"${_pkgname}/build/run_tests" +} package() { make -C "${_pkgname}/build" DESTDIR="${pkgdir}" install |