Commit 0fd603c7 authored by Holger Jaekel's avatar Holger Jaekel Committed by Leo

testing/xerces-c: reduce package size by creating -samples and -dev subpackages

parent 7591c9e6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment