aboutsummaryrefslogtreecommitdiffstats
path: root/community/xmlsec
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-08 05:53:00 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-08 14:59:35 +0000
commit8c989354ffb83a2f4e86f6a4fd36aaf06f157bf6 (patch)
tree11ec344503c7794835fc8fce15b3f125e891a57d /community/xmlsec
parent1173ae61a3d49829c55018d933838ea4d8e7d736 (diff)
downloadaports-8c989354ffb83a2f4e86f6a4fd36aaf06f157bf6.tar.bz2
aports-8c989354ffb83a2f4e86f6a4fd36aaf06f157bf6.tar.xz
community/xmlsec: move from main
Diffstat (limited to 'community/xmlsec')
-rw-r--r--community/xmlsec/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/community/xmlsec/APKBUILD b/community/xmlsec/APKBUILD
new file mode 100644
index 0000000000..cad6fdb76a
--- /dev/null
+++ b/community/xmlsec/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
+# Maintainer: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
+pkgname=xmlsec
+pkgver=1.2.29
+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="all"
+license="MIT"
+makedepends="libxml2-dev libxslt-dev openssl-dev nss-dev
+ autoconf automake libtool"
+checkdepends="nss-tools"
+options="libtool"
+subpackages="$pkgname-nss $pkgname-dev $pkgname-doc"
+source="https://github.com/lsh123/xmlsec/archive/xmlsec-${pkgver//./_}.tar.gz"
+builddir="$srcdir/$pkgname-$pkgname-${pkgver//./_}"
+
+prepare() {
+ default_prepare
+ autoreconf -fi
+}
+
+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"
+ mkdir -p "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/libxmlsec1-nss.so* "$subpkgdir"/usr/lib/
+}
+
+sha512sums="b53eeac801cbcf4b18aa7f4fcec5fea5cae26e9cbef923d6e807ee98b988840943f00781ec6194b300403bd7f656c76ba96efce29c8b49920c9f0d67ba14ea57 xmlsec-1_2_29.tar.gz"