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

Antonio Rojas arojas at archlinux.org
Mon Dec 9 17:42:11 UTC 2019


    Date: Monday, December 9, 2019 @ 17:42:10
  Author: arojas
Revision: 536416

Switch to cmake for new mediastreamer stack release

Modified:
  bcunit/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-09 16:34:21 UTC (rev 536415)
+++ PKGBUILD	2019-12-09 17:42:10 UTC (rev 536416)
@@ -1,28 +1,32 @@
-# Maintainer: Daniel Milde <daniel at milde dot cz>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Daniel Milde <daniel at milde dot cz>
 # Contributor: Danibspi danibspi <at> gmail <dot> com
 
 pkgname=bcunit
 pkgver=3.0.2
-#_commit=29c556fa8ac1ab21fba1291231ffa8dea43cf32a
-pkgrel=1
+pkgrel=2
 pkgdesc="Lightweight system for writing, administering, and running unit tests in C"
 arch=(x86_64)
 url="https://github.com/BelledonneCommunications/bcunit"
-license=('LGPL2')
+license=(LGPL2)
 depends=()
+makedepends=(cmake)
 source=("$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/bcunit/archive/$pkgver.tar.gz")
-#source=("$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/bcunit/archive/${_commit}.zip")
 sha256sums=('eb7090aca5006aa0cea425722cb3fa1a7139185a7d9d1734d57844f69084713f')
 
+prepare() {
+  mkdir -p build
+}
+
 build() {
-  cd "$srcdir/bcunit-${pkgver}"
-  [ -x configure ] || ./autogen.sh
-  ./configure --prefix=/usr
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DENABLE_DOC=ON
   make
 }
 
 package() {
-  cd "$srcdir/bcunit-${pkgver}"
+  cd build
   make DESTDIR="$pkgdir" install
-  mv "$pkgdir"/usr/doc "$pkgdir"/usr/share/doc
 }


More information about the arch-commits mailing list