blob: 38a983b5032aad150dcf086c28343739a38f9285 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer:
pkgname=mqtt-cpp
pkgver=13.2.1
pkgrel=0
pkgdesc='MQTT client/server for C++14 based on Boost.Asio'
arch=('x86_64')
url='https://github.com/redboltz/mqtt_cpp'
license=('custom:Boost')
makedepends=('ninja' 'cmake')
depends=('boost' 'doxygen' 'openssl')
provides=('mqtt_cpp')
_build_directory=build
_install_directory=/usr
source=(
"https://github.com/redboltz/mqtt_cpp/archive/refs/tags/v${pkgver}.tar.gz"
)
sha512sums=(
"70da1f78a032db458b8744d1ed7c3eec97924ad78127ee5aa58cd4fb8e33351874f9d4b2f08aa94a202ee971d3f94d53167da307af3e82b9488aa89796f981e4"
)
prepare() {
build_type=Release
cmake -G Ninja \
-S "${srcdir}"/mqtt_cpp-${pkgver} \
-B "${srcdir}"/${_build_directory} \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_INSTALL_PREFIX:PATH=${_install_directory} \
-DMQTT_BUILD_EXAMPLES=OFF \
-DMQTT_BUILD_TESTS=OFF \
-DMQTT_ALWAYS_SEND_REASON_CODE=ON \
-DMQTT_USE_STATIC_BOOST=OFF \
-DMQTT_USE_STATIC_OPENSSL=OFF \
-DMQTT_USE_TLS=ON \
-DMQTT_USE_WS=ON \
-DMQTT_USE_STR_CHECK=ON \
-DMQTT_USE_LOG=ON \
-DMQTT_STD_VARIANT=OFF \
-DMQTT_STD_OPTIONAL=OFF \
-DMQTT_STD_STRING_VIEW=OFF \
-DMQTT_STD_ANY=OFF \
-DMQTT_STD_SHARED_PTR_ARRAY=OFF \
-DMQTT_DISABLE_LIBSTDCXX_TUPLE_ANY_WORKAROUND=OFF \
-DMQTT_NO_TS_EXECUTORS=OFF
}
build() {
cd "${srcdir}"/${_build_directory}
ninja
}
package() {
cd "${srcdir}"/${_build_directory}
DESTDIR="${pkgdir}" ninja install
mkdir -p "${pkgdir}"/usr/share/licenses/mqtt_cpp
cp -ar "${srcdir}"/mqtt_cpp-${pkgver}/LICENSE_1_0.txt "${pkgdir}"/usr/share/licenses/mqtt_cpp
}
|