diff options
author | Holger Jaekel <holger.jaekel@gmx.de> | 2019-09-13 17:45:25 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-13 15:24:25 -0300 |
commit | 0fd603c76b45032d728c21882d55c54b89297ca3 (patch) | |
tree | 5f4d171ca475916089080cfc7648b6533d2841ba /testing/xerces-c | |
parent | 7591c9e6a4286324656b9dfcd1325596f9842134 (diff) | |
download | aports-0fd603c76b45032d728c21882d55c54b89297ca3.tar.bz2 aports-0fd603c76b45032d728c21882d55c54b89297ca3.tar.xz |
testing/xerces-c: reduce package size by creating -samples and -dev subpackages
Diffstat (limited to 'testing/xerces-c')
-rw-r--r-- | testing/xerces-c/APKBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
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 <andrew.bell.ia@gmail.com> 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 |