[arch-commits] Commit in cunit/repos (community-x86_64 community-x86_64/PKGBUILD)

Thore Bödecker foxxx0 at archlinux.org
Mon Jun 4 12:39:36 UTC 2018


    Date: Monday, June 4, 2018 @ 12:39:36
  Author: foxxx0
Revision: 340256

archrelease: copy trunk to community-x86_64

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

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

Copied: cunit/repos/community-x86_64/PKGBUILD (from rev 340255, cunit/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-06-04 12:39:36 UTC (rev 340256)
@@ -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=2
+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