summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/xchat/PKGBUILD23
1 files changed, 19 insertions, 4 deletions
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
}