From 0fd603c76b45032d728c21882d55c54b89297ca3 Mon Sep 17 00:00:00 2001 From: Holger Jaekel Date: Fri, 13 Sep 2019 17:45:25 +0200 Subject: testing/xerces-c: reduce package size by creating -samples and -dev subpackages --- testing/xerces-c/APKBUILD | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'testing/xerces-c') diff --git a/testing/xerces-c/APKBUILD b/testing/xerces-c/APKBUILD index 01c0b30d96..4dea346ad7 100644 --- a/testing/xerces-c/APKBUILD +++ b/testing/xerces-c/APKBUILD @@ -2,8 +2,8 @@ # Maintainer: Andrew Bell pkgname=xerces-c pkgver=3.2.2 -pkgrel=0 -pkgdesc="A validating XML parser written in a portable subset of C++." +pkgrel=1 +pkgdesc="A validating XML parser written in a portable subset of C++" url="https://xerces.apache.org/index.html" arch="x86 x86_64" license="Apache-2.0" @@ -11,15 +11,13 @@ makedepends=" cmake linux-headers " -subpackages="$pkgname-doc" +subpackages="$pkgname-samples $pkgname-doc $pkgname-dev" _pkgver=${pkgver//./_} _srcname="Xerces-C_${_pkgver}" source="https://github.com/apache/xerces-c/archive/${_srcname}.tar.gz" builddir="$srcdir/$pkgname-$_srcname" build() { - cd "$builddir" - mkdir build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -33,6 +31,13 @@ package() { make DESTDIR="$pkgdir" install } +samples() { + pkgdesc="$pkgdesc (compiled samples)" + + mkdir -p $subpkgdir/usr + mv $pkgdir/usr/bin $subpkgdir/usr +} + check() { cd "$builddir"/build make test -- cgit v1.2.3