blob: 8ff14d434761d511fc45ceea3941eab83024134b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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="Provides a 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() {
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() {
local lib=${subpkgname#$pkgname-}
pkgdesc="xmlsec $lib plugin"
install_if="$pkgname=$pkgver-r$pkgrel $lib"
mkdir -p "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libxmlsec1-$lib.so* "$subpkgdir"/usr/lib/
}
sha512sums="b53eeac801cbcf4b18aa7f4fcec5fea5cae26e9cbef923d6e807ee98b988840943f00781ec6194b300403bd7f656c76ba96efce29c8b49920c9f0d67ba14ea57 xmlsec-1_2_29.tar.gz"
|