[arch-commits] Commit in check/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Tue Oct 22 14:29:50 UTC 2019


    Date: Tuesday, October 22, 2019 @ 14:29:50
  Author: heftig
Revision: 365318

0.13.0-1

Modified:
  check/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++++++++++++++++---------------
 1 file changed, 25 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-22 13:50:26 UTC (rev 365317)
+++ PKGBUILD	2019-10-22 14:29:50 UTC (rev 365318)
@@ -2,8 +2,9 @@
 # Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
 # Contributor: Jeremy Cowgar <jeremy at cowgar.com>
 
-pkgname=check
-pkgver=0.12.0
+pkgbase=check
+pkgname=(check check-docs)
+pkgver=0.13.0
 pkgrel=1
 pkgdesc="A unit testing framework for C"
 url="https://libcheck.github.io/check/"
@@ -10,40 +11,49 @@
 arch=(x86_64)
 license=(LGPL)
 depends=(awk)
-makedepends=(git)
-_commit=673dce1d61781c32b449bef0ee8711dc7e689170  # tags/0.12.0
+makedepends=(git texlive-bin texi2html doxygen)
+_commit=90d03f3fe002c33224432753ebfa21ebb5c32238  # tags/0.13.0
 source=("git+https://github.com/libcheck/check#commit=$_commit")
 md5sums=('SKIP')
 
 pkgver() {
-  cd $pkgname
+  cd check
   git describe --tags | sed 's/-/+/g'
 }
 
 prepare() {
-  cd $pkgname
+  cd check
   autoreconf -fvi
 }
 
 build() {
-  cd $pkgname
+  cd check
   ./configure --prefix=/usr --disable-static
-  make
+  make all doc/doxygen doc/check_html
 }
 
 check() {
-  cd $pkgname
+  cd check
   # Extremely long
   #make -k check
 }
 
-package() {
-  cd $pkgname
+package_check() {
+  optdepends+=('check-docs: Documentation')
+
+  cd check
   make DESTDIR="$pkgdir" install
 
-  # get rid of the package's info directory
-  rm "$pkgdir/usr/share/info/dir"
+  mv "$pkgdir/usr/share/doc" "$srcdir"
+}
 
-  # svn log file is too big
-  rm "$pkgdir"/usr/share/doc/check/*ChangeLog*
+package_check-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+
+  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