aboutsummaryrefslogtreecommitdiffstats
path: root/community/xmlsec/APKBUILD
blob: a5d42509590603cc007ba63c58324026f19347db (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
# Contributor: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
# Maintainer: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
pkgname='xmlsec'
pkgver='1.2.22'
pkgrel=3
pkgdesc="Provides a C based implementation for XML Signature Syntax and Processing and XML Encryption Syntax and Processing."
url="https://github.com/lsh123/${pkgname}/"
arch="all"
license="MIT"
depends=""
depends_dev=
makedepends="${depends_dev} libxml2-dev libxslt-dev libressl-dev autoconf automake libtool"
install=
options="libtool"
subpackages="${pkgname}-dev ${pkgname}-doc"
source="${url}/archive/${pkgname}-${pkgver//./_}.tar.gz
	libressl.patch"
builddir="${srcdir}/${pkgname}-${pkgname}-${pkgver//./_}"

prepare() {
	cd "${builddir}"
	default_prepare || return 1
	./autogen.sh
}

build() {
	cd "${builddir}"
	./configure \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix='/usr' \
		--disable-static \
		--enable-pkgconfig \
		--with-openssl=/usr \
		--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="b0bdaeee4cb39bfe56f2d28bae17faa8  xmlsec-1_2_22.tar.gz
6fdbe893a933da04e8842a46df2e695f  libressl.patch"
sha256sums="f04da7bb6e20e9b9b7a39bb64cfad6836c665cfa6e14f6316fc24fcac6cbac06  xmlsec-1_2_22.tar.gz
2dd03f3e3c9ea256012a1b000d82e774f1bcac5bb7adc6bcb86d9cfbf36bc2cb  libressl.patch"
sha512sums="f03b2dd9fdd9152e4a13466bf71018a2ef5290425019d7576a6f9e9e40bd30b9e6c1895a1ba65cc819dd56a86ea1c6c47142250c6e0695d5c02d4e0322bd8b67  xmlsec-1_2_22.tar.gz
fabc3a3713bc3b7060ca607dbffc094edd31b8e25acefd26706635b38abadbdcc171a4abcb48f1c79876e548bc1370996d92ba718ebd898ce5d73522c2897a69  libressl.patch"