blob: d430cbbb08e21b6bf8436a60c29dd7345f31dca7 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgbase=rmqtt-git
pkgname=rmqtt-git
pkgver=0.2.18.r0.g45cf7e4
pkgrel=1
pkgdesc="MQTT Server/MQTT Broker - Scalable Distributed MQTT Message Broker for IoT in the 5G Era"
arch=('any')
url="https://github.com/rmqtt/rmqtt"
license=('MIT')
provides=(${pkgname%-git} librmqtt_macros.so)
conflicts=(${pkgname%-git} librmqtt_macros.so)
replaces=()
depends=('cargo')
makedepends=('git' 'rust')
backup=()
options=('!strip' '!lto')
install=
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}/"
git describe --long --tags | sed 's/v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname}/"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --all-features
}
check() {
cd "${srcdir}/${pkgname}/"
export RUSTUP_TOOLCHAIN=stable
cargo test --all-features
}
package() {
cd "${srcdir}/${pkgname}/"
install -Dm0755 target/release/rmqttd -t "$pkgdir/usr/bin/"
install -Dm0755 target/release/librmqtt*.so -t "$pkgdir/usr/lib/"
install -Dm0644 LICENSE* -t "$pkgdir/usr/share/licenses/${pkgname}/"
install -Dm0644 README* -t "$pkgdir/usr/share/doc/${pkgname}/"
cp -rv docs "$pkgdir/usr/share/doc/${pkgname}/"
}
|