mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
55 lines
1.8 KiB
Bash
55 lines
1.8 KiB
Bash
# $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>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to fix build
|
|
|
|
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'
|
|
'20_test_runner_bad_virtual_method_arg.dpatch')
|
|
md5sums=('bd373a53403ed51ea1bbb60b1952d7e3'
|
|
'fa35c8a0274264dcb75e5106c5b3deb7'
|
|
'b2721cb13e8e74143d05662eba0d97f8')
|
|
license=('MIT')
|
|
options=('staticlibs')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/UnitTest++"
|
|
patch -p1 -i ../20_test_runner_bad_virtual_method_arg.dpatch
|
|
}
|
|
|
|
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"
|
|
}
|