summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f872abc9553
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributor: josephgbr <rafael.f.f1@gmail.com>
+# Maintainer: GordonGR <ntheo1979@gmail.com>
+
+_pkgname=neon
+pkgname=lib32-${_pkgname}
+pkgver=0.30.1
+pkgrel=1
+pkgdesc="HTTP and WebDAV client library with a C interface (32 bit)"
+arch=('x86_64')
+license=('GPL' 'LGPL')
+depends=('lib32-krb5' 'lib32-expat' "${_pkgname}") #'ca-certificates'
+url="http://www.webdav.org/neon/"
+source=(http://www.webdav.org/${_pkgname}/${_pkgname}-${pkgver}.tar.gz{,.asc})
+md5sums=('231adebe5c2f78fded3e3df6e958878e'
+ 'SKIP')
+options=('libtool') # FS#16067
+
+build() {
+export CC='gcc -m32'
+export CXX='g++ -m32'
+export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+cd "${srcdir}"/${_pkgname}-${pkgver}
+./configure --prefix=/usr \
+ --with-expat \
+ --enable-shared \
+ --disable-static \
+ --with-ssl=openssl \
+ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
+ --libdir=/usr/lib32 --without-libproxy # without proxy, just like 'neon' package
+make
+
+# fix invalid .so links in man pages (FS#24902)
+sed -i '/^\.so/s|\.so \([^.]\+\)\.\([[:digit:]]\)|.so man\2/\1.\2|' doc/man/*
+}
+
+package() {
+cd "${srcdir}"/${_pkgname}-${pkgver}
+make DESTDIR="${pkgdir}" install
+rm -rf "${pkgdir}/usr"/{bin,include,share}
+}