aboutsummaryrefslogblamecommitdiffstats
path: root/community/xmlsec/APKBUILD
blob: 759a06bc52db2b75cc77a468c854630a660e1139 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                            

             
                                                                                                                             
                                       

             
                                                                       
                                  
                        
        
                 
                                                    
                                                                              
                                                         

           
                        
                       
                    


         






                                    
                                     



                                               


         

                        


           





                                                                          
 





                                                                      

 
                                                                                                                                                                   
# Contributor: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
# Maintainer: Sander Maijers <S.N.Maijers+Alpine@gmail.com>
pkgname='xmlsec'
pkgver=1.2.27
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="${depends_dev} libxml2-dev libxslt-dev openssl-dev nss-dev
	autoconf automake libtool"
checkdepends="nss-tools"
install=
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="261528086adc379942861b5950e5b34ffa52a49d0fedcb46bece50c920fd56af4f0472494419bfa5e3cb40abda335b3e9c11466c42273f125b50d204b4604798  xmlsec-1_2_27.tar.gz"