63 lines
1.6 KiB
Bash
63 lines
1.6 KiB
Bash
# Maintainer: Alexey Pavlov <Alexpux@gmail.com>
|
|
|
|
pkgbase=neon
|
|
pkgname=("lib${pkgbase}" "lib${pkgbase}-devel")
|
|
pkgver=0.35.0
|
|
pkgrel=1
|
|
pkgdesc="HTTP and WebDAV client library with a C interface"
|
|
arch=('i686' 'x86_64')
|
|
url="https://notroj.github.io/neon/"
|
|
msys2_repository_url="https://github.com/notroj/neon"
|
|
msys2_references=(
|
|
"cpe: cpe:/a:neon:neon"
|
|
"cpe: cpe:/a:webdav:neon"
|
|
)
|
|
license=('GPL' 'LGPL')
|
|
depends=('libexpat' 'openssl' 'ca-certificates' 'libintl')
|
|
makedepends=('libexpat-devel' 'openssl-devel' 'autotools' 'gcc' 'gettext-devel')
|
|
options=('libtool') # FS#16067
|
|
source=(https://notroj.github.io/neon/${pkgbase}-${pkgver}.tar.gz)
|
|
sha256sums=('1467afb73f35e3f5d0e9fd70628c14cba266a65e2a1fb6e3f945ee3385c8595b')
|
|
|
|
prepare() {
|
|
cd "${srcdir}"/${pkgbase}-${pkgver}
|
|
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}"/${pkgbase}-${pkgver}
|
|
|
|
export MSYSTEM=CYGWIN
|
|
./configure --build=${CHOST} \
|
|
--prefix=/usr \
|
|
--with-expat \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--with-ssl=openssl \
|
|
--with-ca-bundle=/usr/ssl/certs/ca-bundle.crt
|
|
make
|
|
|
|
make DESTDIR="${srcdir}/dest" install
|
|
}
|
|
|
|
package_libneon() {
|
|
groups=('libraries')
|
|
|
|
mkdir -p ${pkgdir}/usr/bin
|
|
cp -f ${srcdir}/dest/usr/bin/*.dll ${pkgdir}/usr/bin/
|
|
cp -rf ${srcdir}/dest/usr/share ${pkgdir}/usr/
|
|
}
|
|
|
|
package_libneon-devel() {
|
|
pkgdesc="Libneon headers and libraries"
|
|
groups=('development')
|
|
options=('staticlibs')
|
|
depends=("libneon=${pkgver}" 'libexpat-devel' 'openssl-devel')
|
|
|
|
mkdir -p ${pkgdir}/usr/bin
|
|
cp -f ${srcdir}/dest/usr/bin/*-config ${pkgdir}/usr/bin/
|
|
cp -rf ${srcdir}/dest/usr/include ${pkgdir}/usr/
|
|
cp -rf ${srcdir}/dest/usr/lib ${pkgdir}/usr/
|
|
}
|