blob: ffadaa9578a38117d8306f7e6ba125f7c571267a (
plain) (
tree)
|
|
# Maintainer: Max Rees <maxcrees@me.com>
pkgname="xmlsec"
pkgver=1.2.26
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=""
depends_dev=""
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() {
cd "$builddir"
default_prepare
./autogen.sh
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
--enable-pkgconfig \
--with-openssl=/usr \
--without-gnutls \
--without-gcrypt \
--with-default-crypto='openssl'
make
}
check() {
cd "$builddir"
make -k check
}
package() {
cd "$builddir"
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="f685f513db0287bc4e5cc6d06b5ed9731cbc03c0e20e1f18da9251fce79f1c6966dc094277f0451e47fd2565018daf77b2126f06f1a56d85ff31f7d3ffa3e2a0 xmlsec-1_2_26.tar.gz"
|