aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 10:58:32 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 13:38:32 -0300
commit5f7faee855574435a5924b1cc148f17922369ee0 (patch)
tree1ae6795d2eb8fc575074da2f7c228f6fe5a636aa
parent68c0091597cd5445eedce3088b7dfb74087d8118 (diff)
downloadaports-5f7faee855574435a5924b1cc148f17922369ee0.tar.gz
aports-5f7faee855574435a5924b1cc148f17922369ee0.tar.bz2
aports-5f7faee855574435a5924b1cc148f17922369ee0.tar.xz
main/rabbitmq-c: modernize
-rw-r--r--main/rabbitmq-c/APKBUILD13
1 files changed, 6 insertions, 7 deletions
diff --git a/main/rabbitmq-c/APKBUILD b/main/rabbitmq-c/APKBUILD
index 7d805e9aa4..a2103c6d96 100644
--- a/main/rabbitmq-c/APKBUILD
+++ b/main/rabbitmq-c/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=rabbitmq-c
pkgver=0.10.0
-pkgrel=0
+pkgrel=1
pkgdesc="RabbitMQ C client"
url="https://github.com/alanxz/rabbitmq-c"
arch="all"
@@ -13,8 +13,8 @@ subpackages="$pkgname-utils $pkgname-doc::noarch $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/alanxz/rabbitmq-c/archive/v$pkgver.tar.gz"
build() {
- mkdir -p build && cd build
- cmake .. \
+ cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_C_FLAGS="$CFLAGS" \
@@ -23,17 +23,16 @@ build() {
-DENABLE_SSL_SUPPORT=ON \
-DBUILD_TESTS=ON \
-DBUILD_TOOLS=ON
- make
+ make -C build
}
check() {
- cd "$builddir"/build
+ cd build
ctest -E basic
}
package() {
- cd "$builddir"/build
- make DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/*.a
}