| 1 | # Maintainer: Natanael Copa <[email protected]> |
| 2 | pkgname=cppunit |
| 3 | pkgver=1.15.1 |
| 4 | pkgrel=4 |
| 5 | pkgdesc="C++ unit testing framework" |
| 6 | url="https://www.freedesktop.org/wiki/Software/cppunit/" |
| 7 | arch="all" |
| 8 | license="LGPL-2.1-or-later" |
| 9 | subpackages="$pkgname-dev $pkgname-doc" |
| 10 | source="https://dev-www.libreoffice.org/src/cppunit-$pkgver.tar.gz" |
| 11 | |
| 12 | prepare() { |
| 13 | default_prepare |
| 14 | update_config_sub |
| 15 | } |
| 16 | |
| 17 | build() { |
| 18 | LIBS="-ldl" ./configure \ |
| 19 | --build=$CBUILD \ |
| 20 | --host=$CHOST \ |
| 21 | --prefix=/usr \ |
| 22 | --sysconfdir=/etc \ |
| 23 | --mandir=/usr/share/man \ |
| 24 | --infodir=/usr/share/info \ |
| 25 | --localstatedir=/var |
| 26 | make |
| 27 | } |
| 28 | |
| 29 | check() { |
| 30 | make check |
| 31 | } |
| 32 | |
| 33 | package() { |
| 34 | make DESTDIR="$pkgdir" install |
| 35 | } |
| 36 | |
| 37 | sha512sums="0feb47faec451357bb4c4e287efa17bb60fd3ad966d5350e9f25b414aaab79e94921024b0c0497672f8d3eeb22a599213d2d71d9e1d28b243b3e37f3a9a43691 cppunit-1.15.1.tar.gz" |