aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xmlsec/APKBUILD
blob: 7a6f7077d8a00ad3ed37a5c93c2993c70a41f797 (plain) (blame)
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
# Contributor: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
# Maintainer: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
pkgname='xmlsec'
pkgver='1.2.20'
pkgrel='0'
pkgdesc="Provides a C based implementation for XML Signature Syntax and Processing and XML Encryption Syntax and Processing."
url="https://www.aleksey.com/${pkgname}"
arch="all"
license="MIT"
depends=""
depends_dev=
makedepends="${depends_dev} libxml2-dev libxslt-dev openssl-dev libtool"
install=
subpackages="${pkgname}-dev ${pkgname}-doc"
source="${url}/download/${pkgname}1-${pkgver}.tar.gz"
_builddir="${srcdir}/${pkgname}1-${pkgver}"

prepare() {
    :
}

build() {
	cd "${_builddir}"
	./configure \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix='/usr' \
		--disable-static \
		--enable-pkgconfig \
		--with-default-crypto='openssl' \
		|| return 1
	make || return 1
}

check() {
	cd "${_builddir}" &&
	make -k check || return 1
}

package() {
	cd "${_builddir}" &&
	make DESTDIR="${pkgdir}" install || return 1

	install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" &&
	install -m644 'COPYING' "${pkgdir}/usr/share/licenses/${pkgname}/" \
		|| return 1
}

md5sums="ce12af00283eb90d9281956524250d6e  xmlsec1-1.2.20.tar.gz"
sha256sums="3221593ca50f362b546a0888a1431ad24be1470f96b2469c0e0df5e1c55e7305  xmlsec1-1.2.20.tar.gz"
sha512sums="2f8d473916abf9822367edbe857fc2e12dc9858d12e790d689d787e439904bd6a452bf631043aa66e7502457ab0815a473657f58fca17a213e2490f5655e5ae5  xmlsec1-1.2.20.tar.gz"