Added mtxclient-git package.
This commit is contained in:
14
mtxclient-git/CMakeLists.patch
Normal file
14
mtxclient-git/CMakeLists.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 71058f0..1b5ab4b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -170,8 +170,7 @@ target_link_libraries(matrix_client
|
||||
OpenSSL::Crypto
|
||||
OpenSSL::SSL
|
||||
Olm::Olm
|
||||
- ZLIB::ZLIB
|
||||
- nlohmann_json::nlohmann_json)
|
||||
+ ZLIB::ZLIB)
|
||||
|
||||
if(NOT MSVC AND NOT APPLE)
|
||||
target_link_libraries(matrix_client PUBLIC Threads::Threads)
|
||||
49
mtxclient-git/PKGBUILD
Normal file
49
mtxclient-git/PKGBUILD
Normal file
@@ -0,0 +1,49 @@
|
||||
pkgname=mtxclient-git
|
||||
pkgver=v0.2.0.r24.g5422d28
|
||||
pkgrel=1
|
||||
pkgdesc="Client API library for Matrix, built on top of Boost.Asio"
|
||||
arch=('x86_64' 'i686')
|
||||
url="https://github.com/Nheko-Reborn/mtxclient"
|
||||
license=('MIT')
|
||||
depends=('libolm' 'libsodium' 'openssl' 'boost-libs')
|
||||
makedepends=('cmake' 'nlohmann-json' 'boost')
|
||||
source=("$pkgname::git+https://github.com/Nheko-Reborn/mtxclient.git"
|
||||
"CMakeLists.patch")
|
||||
sha256sums=('SKIP'
|
||||
'4a45205b07ece8e24db6fb5c513cd331a058b1018a3f32cd35ab93fe40a83c02')
|
||||
conflicts=('mtxclient')
|
||||
provides=('mtxclient')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
pwd
|
||||
git apply -3 ../CMakeLists.patch
|
||||
cd ../build
|
||||
cmake "../$pkgname" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_LIB_TESTS=OFF \
|
||||
-DBUILD_LIB_EXAMPLES=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 "../$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user