[arch-commits] Commit in check/trunk (PKGBUILD no-static.diff)

Jan Steffens heftig at archlinux.org
Fri Oct 2 21:22:02 UTC 2020


    Date: Friday, October 2, 2020 @ 21:22:02
  Author: heftig
Revision: 397120

0.15.2-2: FS#68076 don't install static lib

Added:
  check/trunk/no-static.diff
Modified:
  check/trunk/PKGBUILD

----------------+
 PKGBUILD       |   12 +++++++++---
 no-static.diff |   13 +++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-02 21:00:23 UTC (rev 397119)
+++ PKGBUILD	2020-10-02 21:22:02 UTC (rev 397120)
@@ -5,7 +5,7 @@
 pkgbase=check
 pkgname=(check check-docs)
 pkgver=0.15.2
-pkgrel=1
+pkgrel=2
 pkgdesc="A unit testing framework for C"
 url="https://libcheck.github.io/check/"
 arch=(x86_64)
@@ -12,8 +12,10 @@
 license=(LGPL)
 makedepends=(git texlive-bin texi2html doxygen awk cmake)
 _commit=11970a7e112dfe243a2e68773f014687df2900e8  # tags/0.15.2
-source=("git+https://github.com/libcheck/check#commit=$_commit")
-md5sums=('SKIP')
+source=("git+https://github.com/libcheck/check#commit=$_commit"
+        no-static.diff)
+sha256sums=('SKIP'
+            '1151c40e5bfb08e77175f30f79daadc8c07021c980589a6b33c6f1cf224e48df')
 
 pkgver() {
   cd check
@@ -22,6 +24,10 @@
 
 prepare() {
   cd check
+
+  # https://bugs.archlinux.org/task/68076
+  patch -Np1 -i ../no-static.diff
+
   autoreconf -fvi
 }
 

Added: no-static.diff
===================================================================
--- no-static.diff	                        (rev 0)
+++ no-static.diff	2020-10-02 21:22:02 UTC (rev 397120)
@@ -0,0 +1,13 @@
+diff --git i/src/CMakeLists.txt w/src/CMakeLists.txt
+index 4a02dbe..4d731c9 100644
+--- i/src/CMakeLists.txt
++++ w/src/CMakeLists.txt
+@@ -188,7 +188,7 @@ target_include_directories(checkShared
+ )
+ 
+ if(NOT THIS_IS_SUBPROJECT)
+-  install(TARGETS check checkShared
++  install(TARGETS checkShared
+     EXPORT check-targets
+     ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+     LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}



More information about the arch-commits mailing list