description="XML Security Library is a C library based on LibXML2"
url="https://www.aleksey.com/xmlsec/index.html"

license="Custom"

packager="spiky <spiky@nutyx.org>"
contributors="Rems"

makedepends=(libxslt openssl gnutls nss libtool)

name=xmlsec
version=1.3.5

source=(https://www.aleksey.com/xmlsec/download/${name}1-$version.tar.gz)

build() {
cd ${name}1-$version

./configure --prefix=/usr \
            --disable-static

make
make DESTDIR=$PKG install

# Obsolet libs
rm $PKG/usr/lib/libxmlsec1-gcrypt.la
rm $PKG/usr/lib/libxmlsec1-gnutls.la
rm $PKG/usr/lib/libxmlsec1-nss.la
rm $PKG/usr/lib/libxmlsec1.la
rm $PKG/usr/lib/libxmlsec1-openssl.la

install -Dm644 Copyright $PKG/usr/share/licenses/$name/Copyright
}
