Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id CC7767819E6 for <~alpine/aports@lists.alpinelinux.org>; Sun, 18 Aug 2019 14:34:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A915F298E4 for <~alpine/aports@lists.alpinelinux.org>; Sun, 18 Aug 2019 16:26:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dFzY0NW0PrEB; Sun, 18 Aug 2019 16:26:48 +0200 (CEST) From: Bart Ribbers DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1566138408; bh=ios6KDMhDmSnoQGd9u1U9jbz4ca1bdUtk5dMWCggxS0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=l1o0LdT7HrFUx6IlNAvwFj5giDpaAxrYQWcPdqezIaktKP4BzJ11Cd/8OGiP1Y1F2 1EdDYsb23xd7wIo6acfPPHWqOe8aEU8RhWAHudVFfEzLexORE67Vya8/HxJ/mBzE8T kfJbgOil9DLzp9GtUjDAMeu7J24xdL+sHJCGiQZvhRKzv7007P/4WY2df3ZQmW0I/c FH2MDzlRt18Qf/tNiZwPVour22w92wvAl3BNX+ZMS3UGQgZ3CrSNgoCCIN0qN45xam mOJr0ujBbptnm2hPXkuQ3Mw+3r2ChgbFJ9SxcKhi6H8v09KkaqgTApaUj2UjNQCLnN k2NAFml5YOs/g== To: ~alpine/aports@lists.alpinelinux.org Cc: Bart Ribbers Subject: [PATCH 2/4] testing/mtxclient: new aport Date: Sun, 18 Aug 2019 16:26:36 +0200 Message-Id: <20190818142638.9980-2-bribbers@disroot.org> In-Reply-To: <20190818142638.9980-1-bribbers@disroot.org> References: <20190818142638.9980-1-bribbers@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/mtxclient/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 testing/mtxclient/APKBUILD diff --git a/testing/mtxclient/APKBUILD b/testing/mtxclient/APKBUILD new file mode 100644 index 0000000000..8b12b9d786 --- /dev/null +++ b/testing/mtxclient/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=mtxclient +pkgver=0.2.1 +pkgrel=0 +pkgdesc="Client API library for Matrix, built on top of Boost.Asio" +url="https://github.com/nheko-reborn/mtxclient" +arch="all" +license="MIT" +depends_dev="nlohmann-json-dev openssl-dev zlib-dev olm-dev libsodium-dev boost-dev" +makedepends="$depends_dev cmake gtest-dev" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/nheko-reborn/$pkgname/archive/v$pkgver.tar.gz" +options="!check" # Requires running Synapse instance + +build() { + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_LIB_EXAMPLES=OFF \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + DESTDIR="$pkgdir" make install +} + +sha512sums="3362e9ae44ebeb22ac036ba2ac63682eeb97248754bf4b4029ce381d6d99501a94cd82a7b2e23aefe902b4c43389ee48e5e465679ce7fbebbf4f4d06cbc19659 mtxclient-0.2.1.tar.gz" -- 2.21.0