Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
unittestpp


Commits:
824707cc by Antonio Rojas at 2023-12-16T10:44:31+01:00
upgpkg: 2.0.0-5: Fix version number in pc file

- - - - -


3 changed files:

- + .SRCINFO
- PKGBUILD
- + fix-pc-version.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,18 @@
+pkgbase = unittestpp
+       pkgdesc = Lightweight unit testing framework for C++
+       pkgver = 2.0.0
+       pkgrel = 5
+       url = https://github.com/unittest-cpp/unittest-cpp/
+       arch = x86_64
+       license = MIT
+       makedepends = cmake
+       depends = gcc-libs
+       options = staticlibs
+       source = 
unittestpp-2.0.0.tar.gz::https://github.com/unittest-cpp/unittest-cpp/archive/v2.0.0.tar.gz
+       source = fix-pc-version.patch
+       sha256sums = 
74852198877dc2fdebdc4e5e9bd074018bf8ee03a13de139bfe41f4585b2f5b9
+       sha256sums = 
6bb25aadc05f56d97d5dcbd061ad72089f2909f8389343bde050f1ac42f724ab
+       sha512sums = 
39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab
+       sha512sums = 
0e11b4565308c2c174cbbe12ef3794cb0c877e2292b13acab4ebdb7045aba67571056941f69947e6ea2c6f01436f42fb90dcfe9493fd86573e0ec2359abc4741
+
+pkgname = unittestpp


=====================================
PKGBUILD
=====================================
@@ -6,7 +6,7 @@
 
 pkgname=unittestpp
 pkgver=2.0.0
-pkgrel=4
+pkgrel=5
 pkgdesc='Lightweight unit testing framework for C++'
 url='https://github.com/unittest-cpp/unittest-cpp/'
 arch=('x86_64')
@@ -14,12 +14,18 @@ license=('MIT')
 depends=('gcc-libs')
 makedepends=('cmake')
 options=('staticlibs')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz)
-sha256sums=('74852198877dc2fdebdc4e5e9bd074018bf8ee03a13de139bfe41f4585b2f5b9')
-sha512sums=('39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/unittest-cpp/unittest-cpp/archive/v${pkgver}.tar.gz
+        fix-pc-version.patch)
+sha256sums=('74852198877dc2fdebdc4e5e9bd074018bf8ee03a13de139bfe41f4585b2f5b9'
+            '6bb25aadc05f56d97d5dcbd061ad72089f2909f8389343bde050f1ac42f724ab')
+sha512sums=('39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab'
+            
'0e11b4565308c2c174cbbe12ef3794cb0c877e2292b13acab4ebdb7045aba67571056941f69947e6ea2c6f01436f42fb90dcfe9493fd86573e0ec2359abc4741')
 
 prepare() {
   mkdir -p unittest-cpp-${pkgver}/build
+
+  patch -d unittest-cpp-${pkgver} -p1 < fix-pc-version.patch # Fix version 
number in pc file
+  sed -e 's/-Werror//' -i unittest-cpp-${pkgver}/CMakeLists.txt # Evil -Werror
 }
 
 build() {


=====================================
fix-pc-version.patch
=====================================
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b4c75c9..168766b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -135,6 +135,7 @@ set(prefix      ${CMAKE_INSTALL_PREFIX})
+ set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
+ set(libdir      ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
+ set(includedir  ${CMAKE_INSTALL_PREFIX}/include/UnitTest++)
++set(PACKAGE_VERSION ${UnitTest++_VERSION})
+ configure_file("UnitTest++.pc.in" "UnitTest++.pc" @ONLY)
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+     set(pkgconfdir  ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig)



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/unittestpp/-/commit/824707cce74e59f5f7cadcbd5889ede55157b78c

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/unittestpp/-/commit/824707cce74e59f5f7cadcbd5889ede55157b78c
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to