# Maintainer: Jesus E. pkgname=wvstreams pkgver=4.6.1 _debver=$pkgver _debrel=15 pkgrel=14 pkgdesc="A network programming library written in C++" arch=('i686' 'x86_64') license=('LGPL-2') depends=('zlib' 'xplc' 'libressl' 'readline') makedepends=('quilt') source=("${pkgname}-${pkgver}.tar.gz::https://deb.debian.org/debian/pool/main/w/wvstreams/wvstreams_${pkgver}.orig.tar.gz" "https://deb.debian.org/debian/pool/main/w/wvstreams/wvstreams_${_debver}-${_debrel}.debian.tar.xz" "wvstreams-4.6.1-glibc212.patch" "wvstreams-4.6.1-gcc47.patch" "openssl-buildfix.patch" "gcc-6.patch" "libressl.patch") sha512sums=('59d64e527d86394b768b35254bf95ea59c412c0e092393ea3c84ec3202949150439bb6093bd7350b64ad4767acdb8feb38806c03de4e5cf238ed893f41db4a4a' 'f10196953ead78f6c58d8930ef4ad6565a8b0900d5ecb90defb6b76cd0c114f78651ef01bbb9ca5215c231f427ed5b5e883ae1ac8da6ed128ad3424d31ce5ced' '4ed90339730f36d3ad932b17561c5222ba63c4158b21050f52e80da8a150c8f16e15bd0826ed41d1e39a0ba88096eb19d7c93af403f8db9369ce56cd62b2db93' '306a20b2b822d79ccf26498863a9d5e45b2f2a35e0cf6dacbc73d80dcfc8cec2d7ed9a80417a74ac32f82daa03ef905ef70f9e70971468c2223a28dd355c35fc' 'a04ecb47e243ad6d0249bc053463fabd4c07ec68e55ec0f57cfca1418bb36eb989bc5eb91016a7433c3cb5f73561c430b7c0227c72c8673fbd59bbb28f5721d3' '9d72bcbfcdeedf96a183689540f9f7be4a098b819e0b2a41e8412543d4b827e02a2fc9eb45116f66789949985488a802b0e81733843fa7c297e2874d5d007f3a' '9acba01c1c9b4653686fabecac4334ff6995f0c6b6aedff140d4b70eb56b8204ee3007dadabe66ce73609c40592d607d9fa4bb0fc886ef919fdc67bc47dd814c') options=('!makeflags') prepare() { cd ${pkgname}-${pkgver} if [[ ${pkgver%.*} = ${_debver%.*} ]]; then # Debian patches export QUILT_PATCHES=debian/patches export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index' export QUILT_DIFF_ARGS='--no-timestamps' mv "$srcdir"/debian . # Doesn't apply and seems unimportant rm -v debian/patches/01_kfreebsd_ftbfs.diff || true rm -v debian/patches/wvstreams_openssl1.1.patch || true quilt push -av else patch -p0 -i "$srcdir/wvstreams-4.6.1-glibc212.patch" patch -p0 -i "$srcdir/wvstreams-4.6.1-gcc47.patch" patch -p1 -i "$srcdir/openssl-buildfix.patch" patch -p1 -i "$srcdir/gcc-6.patch" fi patch -p1 -i "$srcdir/libressl.patch" } build() { cd ${pkgname}-${pkgver} ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-openssl \ --without-dbus \ --without-pam \ --without-tcl \ --without-qt make COPTS="$CFLAGS -fPIC" CXXOPTS="$CXXFLAGS -fPIC -fpermissive -fno-tree-dce -fno-optimize-sibling-calls" VERBOSE=1 } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # --without-dbus still installs the pkg-config file rm "${pkgdir}/usr/lib/pkgconfig/libwvdbus.pc" # --without-qt still installs the pkg-config file rm "${pkgdir}/usr/lib/pkgconfig/libwvqt.pc" }