2018-08-22 16:43:24 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://serf.apache.org/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="High performance C-based HTTP client library"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2016-09-26 16:48:48 +02:00
|
|
|
TERMUX_PKG_VERSION=1.3.9
|
2021-05-29 13:55:26 +02:00
|
|
|
TERMUX_PKG_REVISION=5
|
2016-05-23 08:47:47 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://archive.apache.org/dist/serf/serf-${TERMUX_PKG_VERSION}.tar.bz2
|
2017-02-12 22:15:13 +01:00
|
|
|
TERMUX_PKG_SHA256=549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc
|
2019-04-14 14:51:46 +02:00
|
|
|
TERMUX_PKG_DEPENDS="apr, apr-util, openssl, libuuid, libexpat, zlib"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="serf-dev"
|
|
|
|
TERMUX_PKG_REPLACES="serf-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2015-06-13 01:03:31 +02:00
|
|
|
scons APR=$TERMUX_PREFIX \
|
|
|
|
APU=$TERMUX_PREFIX \
|
2019-02-12 09:41:30 +01:00
|
|
|
CC=$(which $CC) \
|
2017-06-30 23:59:52 +02:00
|
|
|
CFLAGS="$CFLAGS" \
|
|
|
|
CPPFLAGS="$CPPFLAGS -std=c11" \
|
2015-06-13 01:03:31 +02:00
|
|
|
LINKFLAGS="$LDFLAGS" \
|
|
|
|
OPENSSL=$TERMUX_PREFIX \
|
2016-09-26 16:48:48 +02:00
|
|
|
PREFIX=$TERMUX_PREFIX \
|
2015-06-13 01:03:31 +02:00
|
|
|
install
|
2016-09-26 16:48:48 +02:00
|
|
|
# Avoid specifying -lcrypt:
|
|
|
|
perl -p -i -e 's/-lcrypt //' $TERMUX_PREFIX/lib/pkgconfig/serf-1.pc
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|