diff options
-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 |