From baceb8a5098ed693316422d6136697b93ff6580e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 21 Jun 2023 09:26:51 -0400 Subject: [PATCH] user/xmlsec: new aport --- user/xmlsec/APKBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 user/xmlsec/APKBUILD diff --git a/user/xmlsec/APKBUILD b/user/xmlsec/APKBUILD new file mode 100644 index 0000000..65e14e4 --- /dev/null +++ b/user/xmlsec/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Sander Maijers +# Maintainer: Sander Maijers +pkgname=xmlsec +pkgver=1.2.37 +pkgrel=0 +pkgdesc="C based implementation for XML Signature Syntax and Processing and XML Encryption Syntax and Processing" +url="https://github.com/lsh123/xmlsec/" +arch="!armv7 all" +license="MIT" +makedepends=" + libtool + libxml2-dev + libxslt-dev + nss-dev + openssl-dev>3 + " +checkdepends="nss-tools" +options="libtool !check" # disable tests til https://github.com/lsh123/xmlsec/issues/308 is fixed +subpackages="$pkgname-nss $pkgname-dev $pkgname-doc" +source="https://github.com/lsh123/xmlsec/releases/download/xmlsec-${pkgver//./_}/xmlsec1-$pkgver.tar.gz" +builddir="$srcdir/xmlsec1-$pkgver" + +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 +} + +nss() { + pkgdesc="xmlsec nss plugin" + install_if="$pkgname=$pkgver-r$pkgrel nss" + + amove usr/lib/libxmlsec1-nss.so* +} + +sha512sums=" +99220cb28a346ffac0023f9f177d6a7be3ddcea04bea434b7dc926c1f0aaa5564d75f74f92896ac100179c04d77e001f688ddf46fed4e0a0b4f20b7b87c24900 xmlsec1-1.2.37.tar.gz +"