New package: mtxclient-0.2.0
This commit is contained in:
parent
2948786ddb
commit
8dbec3aae1
|
@ -3318,3 +3318,5 @@ libretro-gtk-0.14.so.0 retro-gtk-0.16.0_1
|
|||
libmanette-0.2.so.0 libmanette-0.2.1_1
|
||||
libfmt.so.5 fmt-5.2.1_1
|
||||
libelementary-calendar.so.0 libio.elementary.calendar-4.2.3_1
|
||||
libolm.so.2 olm-2.3.0_1
|
||||
libmatrix_client.so.0.2.0 mtxclient-0.2.0_1
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
mtxclient
|
|
@ -0,0 +1,36 @@
|
|||
# Template file for 'mtxclient'
|
||||
pkgname=mtxclient
|
||||
version=0.2.0
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DBUILD_LIB_TESTS=OFF -DBUILD_LIB_EXAMPLES=OFF
|
||||
-DBUILD_SHARED_LIBS=ON"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="boost-devel zlib-devel libsodium-devel libressl-devel olm-devel
|
||||
json-c++"
|
||||
short_desc="Client API library for the Matrix protocol"
|
||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://github.com/mujx/mtxclient"
|
||||
distfiles="https://github.com/mujx/mtxclient/archive/v${version}.tar.gz"
|
||||
checksum=e7638d4a8233c0c763d48111fd13e8ad1dcd5f34e3e641b46eaf1bb920b73482
|
||||
|
||||
pre_configure() {
|
||||
sed -i '/-Werror/d' CMakeLists.txt
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
# Fix up includes to nlohmann json
|
||||
grep -rl '#include <json.hpp>' | xargs sed -i 's|#include <json.hpp>|#include <nlohmann/json.hpp>|'
|
||||
grep -rl '#include "json.hpp"' | xargs sed -i 's|#include "json.hpp"|#include <nlohmann/json.hpp>|'
|
||||
}
|
||||
|
||||
mtxclient-devel_package() {
|
||||
depends="mtxclient-${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/cmake
|
||||
vmove "usr/lib/*.so"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue