blob: 171427b55c21b5a5d09da73898781f9fb7f7d1c0 (
plain) (
tree)
|
|
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=xmlsec
pkgver=1.2.28
_pkgver=1_2_28
pkgrel=0
pkgdesc="C-based XML signature and encryption syntax and processing library"
url="https://github.com/lsh123/$pkgname/"
arch="all"
options="libtool"
license="MIT"
depends=""
checkdepends="nss-tools"
makedepends="$depends_dev libxml2-dev libxslt-dev nss-dev openssl-dev
autoconf automake libtool"
subpackages="$pkgname-nss $pkgname-dev $pkgname-doc"
source="$url/archive/$pkgname-$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$_pkgver"
prepare() {
default_prepare
./autogen.sh
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
--enable-pkgconfig \
--with-openssl=/usr \
--without-gnutls \
--without-gcrypt \
--with-default-crypto='openssl'
make
}
check() {
make -k check
}
package() {
make DESTDIR="$pkgdir" install
install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
install -m644 'COPYING' "$pkgdir/usr/share/licenses/$pkgname/"
}
nss() {
pkgdesc="xmlsec NSS plugin"
install_if="$pkgname=$pkgver-r$pkgrel nss"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libxmlsec1-nss.so* "$subpkgdir"/usr/lib/
}
sha512sums="fb0c775f6455ce5a5579a69bb91d60fe90c023e538c32bdf2a70aa413a53b22ef938349a3ce6b42bb23f8f70b4e00f1b9917f877487bb1507c927ec70c3d95f5 xmlsec-1_2_28.tar.gz"
|