summaryrefslogtreecommitdiff
path: root/community/unittestpp/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-07-19 03:43:15 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-07-19 03:43:15 +0000
commite326eefd3e4853a3b36ef72eba0b21d21170de31 (patch)
tree5ffb9c48ffa81fa59fc8278d1abb6cf10f0e1682 /community/unittestpp/PKGBUILD
parent9959727f4ef9acd6805bb372e98323a01468246e (diff)
Sat Jul 19 03:34:45 UTC 2014
Diffstat (limited to 'community/unittestpp/PKGBUILD')
-rw-r--r--community/unittestpp/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/unittestpp/PKGBUILD b/community/unittestpp/PKGBUILD
new file mode 100644
index 000000000..8d28a62ad
--- /dev/null
+++ b/community/unittestpp/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id:
+# Maintainer : Martin Wimpress <code@flexion.org>
+# Contributor: Jorge Araya Navarro <elcorreo@deshackra.com>
+# Contributor: Piotr Beling <qwak@w8.pl>
+# Contributor: Vianney le Clément <vleclement AT gmail · com>
+
+pkgname=unittestpp
+pkgver=1.4
+pkgrel=6
+pkgdesc="A lightweight unit testing framework for C++"
+arch=('i686' 'x86_64')
+url="http://unittest-cpp.sourceforge.net/"
+depends=('gcc-libs')
+source=("http://downloads.sourceforge.net/project/unittest-cpp/UnitTest%2B%2B/$pkgver/unittest-cpp-$pkgver.zip"
+ 'unittest++.pc')
+md5sums=('bd373a53403ed51ea1bbb60b1952d7e3'
+ 'fa35c8a0274264dcb75e5106c5b3deb7')
+license=('MIT')
+options=('staticlibs')
+
+build() {
+ cd "${srcdir}/UnitTest++"
+ make all
+}
+
+package() {
+ install -dm755 "${pkgdir}/usr/lib/pkgconfig"
+ install -m644 unittest++.pc "${pkgdir}/usr/lib/pkgconfig"
+
+ cd "${srcdir}/UnitTest++"
+
+ install -dm755 "${pkgdir}/usr/include/unittest++/Posix"
+ install -m644 src/*.h "${pkgdir}/usr/include/unittest++"
+ install -m644 src/Posix/*.h "${pkgdir}/usr/include/unittest++/Posix"
+
+ install -dm755 "${pkgdir}/usr/lib"
+ install -m644 libUnitTest++.a "${pkgdir}/usr/lib"
+ ln -s libUnitTest++.a "${pkgdir}/usr/lib/libunittest++.a"
+
+ install -dm755 "${pkgdir}/usr/share/licenses/unittestpp"
+ install -m644 COPYING "${pkgdir}/usr/share/licenses/unittestpp/LICENSE"
+ install -dm755 "${pkgdir}/usr/share/doc/unittestpp"
+ install -m644 README "${pkgdir}/usr/share/doc/unittestpp/README"
+ install -m644 docs/UnitTest++.html "${pkgdir}/usr/share/doc/unittestpp/UnitTest++.html"
+}