2018-11-29 13:00:47 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://lloyd.github.io/yajl/
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Yet Another JSON Library"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="ISC"
|
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_VERSION=2.1.0
|
2018-09-22 12:48:19 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/lloyd/yajl/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2019-01-21 17:50:21 +01:00
|
|
|
termux_setup_cmake
|
|
|
|
rm -f ./configure
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
2019-01-21 17:50:21 +01:00
|
|
|
# fix location of yajl.pc
|
|
|
|
if [ -f "${TERMUX_PREFIX}/share/pkgconfig/yajl.pc" ]; then
|
|
|
|
mkdir -p "${TERMUX_PREFIX}/lib/pkgconfig" || exit 1
|
|
|
|
mv -f "${TERMUX_PREFIX}/share/pkgconfig/yajl.pc" "${TERMUX_PREFIX}/lib/pkgconfig/yajl.pc" || exit 1
|
|
|
|
fi
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|