[arch-commits] Commit in check/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Jan Steffens heftig at archlinux.org
Sun Jul 19 09:10:30 UTC 2020


    Date: Sunday, July 19, 2020 @ 09:10:30
  Author: heftig
Revision: 392270

archrelease: copy trunk to extra-x86_64

Added:
  check/repos/extra-x86_64/PKGBUILD
    (from rev 392269, check/trunk/PKGBUILD)
Deleted:
  check/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |  134 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 75 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-19 09:09:43 UTC (rev 392269)
+++ PKGBUILD	2020-07-19 09:10:30 UTC (rev 392270)
@@ -1,59 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
-# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
-# Contributor: Jeremy Cowgar <jeremy at cowgar.com>
-
-pkgbase=check
-pkgname=(check check-docs)
-pkgver=0.15.0
-pkgrel=1
-pkgdesc="A unit testing framework for C"
-url="https://libcheck.github.io/check/"
-arch=(x86_64)
-license=(LGPL)
-makedepends=(git texlive-bin texi2html doxygen awk)
-_commit=aa8657b149ad290bee7c6855ad97f10f1522ebbb  # tags/0.15.0
-source=("git+https://github.com/libcheck/check#commit=$_commit")
-md5sums=('SKIP')
-
-pkgver() {
-  cd check
-  git describe --tags | sed 's/-/+/g'
-}
-
-prepare() {
-  cd check
-  autoreconf -fvi
-}
-
-build() {
-  cd check
-  ./configure --prefix=/usr --disable-static
-  make all doc/doxygen doc/check_html
-}
-
-check() {
-  cd check
-  # Extremely long
-  #make -k check
-}
-
-package_check() {
-  depends=(awk)
-  optdepends=('check-docs: Documentation')
-  provides=(libcheck.so)
-
-  cd check
-  make DESTDIR="$pkgdir" install
-
-  mv "$pkgdir/usr/share/doc" "$srcdir"
-}
-
-package_check-docs() {
-  pkgdesc+=" (documentation)"
-
-  cp -a check/doc/doxygen/html doc/check/doxygen
-  cp -a check/doc/check_html   doc/check/manual
-
-  mkdir -p "$pkgdir/usr/share"
-  mv doc "$pkgdir/usr/share"
-}

Copied: check/repos/extra-x86_64/PKGBUILD (from rev 392269, check/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-19 09:10:30 UTC (rev 392270)
@@ -0,0 +1,75 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Jeremy Cowgar <jeremy at cowgar.com>
+
+pkgbase=check
+pkgname=(check check-docs)
+pkgver=0.15.0
+pkgrel=2
+pkgdesc="A unit testing framework for C"
+url="https://libcheck.github.io/check/"
+arch=(x86_64)
+license=(LGPL)
+makedepends=(git texlive-bin texi2html doxygen awk cmake)
+_commit=aa8657b149ad290bee7c6855ad97f10f1522ebbb  # tags/0.15.0
+source=("git+https://github.com/libcheck/check#commit=$_commit")
+md5sums=('SKIP')
+
+pkgver() {
+  cd check
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd check
+
+  # Fix format warnings
+  git cherry-pick -n 02128563709a 17fdbf2c3d52 8c6788e66e04
+
+  autoreconf -fvi
+}
+
+build() {
+  CFLAGS+=" -Wno-format-extra-args"
+
+  cmake -Hcheck -Bcmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCHECK_ENABLE_TIMEOUT_TESTS=OFF \
+    -DAWK_GSUB_DBL_BSLASH='\\\\'
+  cmake --build cmake
+
+  cd check
+  ./configure --prefix=/usr --disable-timeout-tests
+  make all doc/doxygen doc/check_html
+}
+
+check() {
+  CTEST_OUTPUT_ON_FAILURE=1 cmake --build cmake --target test
+
+  cd check
+  make check
+}
+
+package_check() {
+  depends=(awk)
+  optdepends=('check-docs: Documentation')
+  provides=(libcheck.so)
+
+  DESTDIR="$pkgdir" cmake --build cmake --target install
+
+  DESTDIR="$srcdir/tmp" make -C check install
+  mv tmp/usr/share/{aclocal,info} "$pkgdir/usr/share"
+  mv tmp/usr/share/doc .
+  rm -rv tmp
+}
+
+package_check-docs() {
+  pkgdesc+=" (documentation)"
+
+  cp -a check/doc/doxygen/html doc/check/doxygen
+  cp -a check/doc/check_html   doc/check/manual
+
+  mkdir -p "$pkgdir/usr/share"
+  mv doc "$pkgdir/usr/share"
+}



More information about the arch-commits mailing list