mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 11:22:30 +01:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=cppunit
|
|
pkgver=1.13.2
|
|
pkgrel=1
|
|
pkgdesc="C++ unit testing framework"
|
|
url="http://www.freedesktop.org/wiki/Software/cppunit/"
|
|
arch="all"
|
|
license="LGPL2+"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="http://dev-www.libreoffice.org/src/cppunit-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/cppunit-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
update_config_sub || return 1
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
LIBS="-ldl" ./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
rm -f "$pkgdir"/usr/lib/*.la
|
|
}
|
|
|
|
md5sums="d1c6bdd5a76c66d2c38331e2d287bc01 cppunit-1.13.2.tar.gz"
|
|
sha256sums="3f47d246e3346f2ba4d7c9e882db3ad9ebd3fcbd2e8b732f946e0e3eeb9f429f cppunit-1.13.2.tar.gz"
|
|
sha512sums="8f4be569f321d577cec31931f49f4df143bc94e283605509b6ea50c60690aa91a2aed940e7eebd4b2413a4218f9a6c3978d312d8e587eab040283c6563846ecd cppunit-1.13.2.tar.gz"
|