From dc520b9bfbe273bf6ff8b0fd3960a2638d8539ec Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Mon, 8 May 2017 11:46:17 +0200 Subject: xchat: building against openssl-1.0 --- libre/xchat/PKGBUILD | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'libre/xchat') diff --git a/libre/xchat/PKGBUILD b/libre/xchat/PKGBUILD index af5efe18d..df7247a42 100644 --- a/libre/xchat/PKGBUILD +++ b/libre/xchat/PKGBUILD @@ -5,14 +5,18 @@ pkgname=xchat pkgver=2.8.8 -pkgrel=19.parabola1 +pkgrel=19.parabola2 pkgdesc="A GTK+ based IRC client, without nonfree browser reference" arch=('i686' 'x86_64' 'armv7h') url="http://www.xchat.org/" replaces=('xchat-libre') conflicts=('xchat-libre') license=('GPL') -depends=('gtk2' 'openssl' 'dbus-glib' 'libnotify') +depends=('gtk2' 'dbus-glib' 'libnotify') +# until openssl-1.1 arrives in arm packages... +depends_armv7h=('openssl') +depends_i686=('openssl-1.0') +depends_x86_64=('openssl-1.0') makedepends=('tcl' 'perl' 'python2' 'librsvg') optdepends=('enchant: for spell checking support' 'perl: for perl plugin' @@ -51,8 +55,19 @@ build() { autoconf autoheader - LIBS+="-lgmodule-2.0" ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share \ - --enable-openssl --enable-dbus --disable-textfe --enable-ipv6 --enable-shm --enable-spell=static + if [[ "$CARCH" != "arm" ]]; then + LIBS+=" -lgmodule-2.0 -l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0" \ + CFLAGS+=" -I /usr/include/openssl-1.0" \ + ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share \ + --enable-openssl --enable-dbus --disable-textfe --enable-ipv6 \ + --enable-shm --enable-spell=static + else + LIBS+=" -lgmodule-2.0" \ + ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share \ + --enable-openssl --enable-dbus --disable-textfe --enable-ipv6 \ + --enable-shm --enable-spell=static + fi + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } -- cgit v1.2.3