-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add nanomq-git #3304
base: master
Are you sure you want to change the base?
Add nanomq-git #3304
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Maintainer: taotieren <[email protected]> | ||
|
||
pkgbase=nanomq-git | ||
pkgname=(nanomq{,-sqlite,-msquic,-full}-git) | ||
pkgver=0.17.8.r86.g3886c036 | ||
pkgrel=1 | ||
pkgdesc="Nano MQTT Broker - An Ultra-light and Blazing-fast MQTT Broker for IoT Edge" | ||
arch=('x86_64') | ||
url="https://github.com/nanomq/nanomq" | ||
license=('MIT') | ||
provides=(${pkgbase%-git} | ||
nanonng | ||
nng) | ||
conflicts=(${pkgbase%-git}) | ||
depends=(mbedtls) | ||
makedepends=(asciidoctor | ||
boost | ||
cmake | ||
gcc | ||
git | ||
ninja | ||
sqlite | ||
zeromq) | ||
backup=() | ||
options=('!strip') | ||
source=("${pkgname%-git}::git+${url}.git") | ||
sha256sums=('SKIP') | ||
|
||
pkgver() { | ||
cd "${srcdir}/${pkgbase%-git}/" | ||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
} | ||
|
||
prepare() { | ||
cd "${srcdir}/${pkgbase%-git}/" | ||
git submodule update --init --recursive | ||
} | ||
|
||
package_nanomq-git() { | ||
pkgdesc+=" (base Broker)" | ||
provides+=(${pkgname%-git}) | ||
|
||
cd "${srcdir}/${pkgbase%-git}/" | ||
cmake -DCMAKE_BUILD_TYPE=None \ | ||
-DNNG_ENABLE_TLS=ON \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-B build_nanomq \ | ||
-G Ninja | ||
|
||
ninja -C build_nanomq | ||
|
||
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgbase%-git}/build_nanomq install | ||
} | ||
|
||
package_nanomq-sqlite-git() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
pkgdesc+=" (sqlite Broker)" | ||
provides+=(${pkgname%-git}) | ||
|
||
cd "${srcdir}/${pkgbase%-git}/" | ||
cmake -DCMAKE_BUILD_TYPE=None \ | ||
-DNNG_ENABLE_TLS=ON \ | ||
-DNNG_ENABLE_SQLITE=ON \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-B build_nanomq-sqlite \ | ||
-G Ninja | ||
|
||
ninja -C build_nanomq-sqlite | ||
|
||
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgbase%-git}/build_nanomq-sqlite install | ||
} | ||
|
||
package_nanomq-msquic-git() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
pkgdesc+=" (msquic Broker)" | ||
provides+=(${pkgname%-git} | ||
msquic) | ||
|
||
cd "${srcdir}/${pkgbase%-git}/" | ||
cmake -DCMAKE_BUILD_TYPE=None \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
-DNNG_ENABLE_TLS=ON \ | ||
-DNNG_ENABLE_QUIC=ON \ | ||
-DNNG_ENABLE_SQLITE=ON \ | ||
-DQUIC_BUILD_SHARED=OFF \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-B build_nanomq-msquic \ | ||
-G Ninja | ||
|
||
ninja -C build_nanomq-msquic | ||
|
||
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgbase%-git}/build_nanomq-msquic install | ||
} | ||
|
||
package_nanomq-full-git() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
pkgdesc+=" (full Broker)" | ||
provides+=(${pkgname%-git} | ||
msquic) | ||
|
||
cd "${srcdir}/${pkgbase%-git}/" | ||
cmake -DCMAKE_BUILD_TYPE=None \ | ||
-DNNG_ENABLE_TLS=ON \ | ||
-DNNG_ENABLE_SQLITE=ON \ | ||
-DNNG_ENABLE_QUIC=ON \ | ||
-DNNG_ENABLE_SQLITE=ON \ | ||
-DQUIC_BUILD_SHARED=OFF \ | ||
-DENABLE_JWT=ON \ | ||
-DBUILD_ZMQ_GATEWAY=ON \ | ||
-DBUILD_BENCH=ON \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-B build_nanomq-full \ | ||
-G Ninja | ||
# -DBUILD_DDS_PROXY=ON \ | ||
|
||
ninja -C build_nanomq-full | ||
|
||
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgbase%-git}/build_nanomq-full install | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
maintainers: | ||
- github: taotieren | ||
|
||
build_prefix: extra-x86_64 | ||
|
||
pre_build: vcs_update | ||
|
||
post_build_script: | | ||
git_pkgbuild_commit() | ||
update_aur_repo() | ||
|
||
update_on: | ||
- source: github | ||
github: nanomq/nanomq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.