[arch-commits] Commit in cunit/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 15:35:18 UTC 2020


    Date: Tuesday, July 7, 2020 @ 15:35:18
  Author: felixonmars
Revision: 658955

archrelease: copy trunk to community-staging-x86_64

Added:
  cunit/repos/community-staging-x86_64/
  cunit/repos/community-staging-x86_64/PKGBUILD
    (from rev 658954, cunit/trunk/PKGBUILD)

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: cunit/repos/community-staging-x86_64/PKGBUILD (from rev 658954, cunit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 15:35:18 UTC (rev 658955)
@@ -0,0 +1,54 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Hanspeter Porner <dev at open-music-kontrllers.ch>
+pkgname=cunit
+_pkgname=CUnit
+pkgver=2.1.3
+_pkgver='2.1-3'
+pkgrel=3
+epoch=
+pkgdesc='A Unit Testing Framework for C'
+arch=('x86_64')
+url='http://cunit.sourceforge.net'
+license=('LGPL2.1')
+depends=('glibc')
+makedepends=('glibc' 'libtool' 'automake')
+source=("https://downloads.sourceforge.net/project/cunit/$_pkgname/$_pkgver/$_pkgname-$_pkgver.tar.bz2")
+sha512sums=('547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487')
+
+prepare() {
+  cd "${srcdir}/${_pkgname}-${_pkgver}"
+}
+
+build() {
+  cd "${srcdir}/${_pkgname}-${_pkgver}"
+
+  libtoolize --force --copy
+  aclocal
+  autoheader
+  automake --add-missing --include-deps --copy
+  autoconf
+
+  ./configure \
+    --prefix=/usr \
+    --enable-automated \
+    --enable-basic \
+    --enable-console \
+    --enable-test \
+    --enable-shared \
+    --enable-static
+  make
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${_pkgver}"
+  ./CUnit/Sources/Test/test_cunit
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${_pkgver}"
+
+  make DESTDIR="${pkgdir}/" install
+
+  rm -r "${pkgdir}/usr/share/CUnit"
+  mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+}



More information about the arch-commits mailing list