mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Leo <thinkabit.ukim@gmail.com>
|
|
pkgname=libquotient
|
|
_realname=libQuotient
|
|
# Note that 0.5.x releases keep the old libqmatrix name
|
|
# See https://github.com/quotient-im/libQuotient/releases/tag/0.5.2
|
|
pkgver=0.5.2
|
|
pkgrel=0
|
|
pkgdesc="Qt5 library for cross-platform clients for Matrix"
|
|
options="!check" # No testsuite
|
|
url="https://github.com/quotient-im/libQuotient"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
depends_dev="qt5-qtbase-dev qt5-qtmultimedia-dev"
|
|
makedepends="$depends_dev cmake"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/quotient-im/$_realname/archive/${pkgver}.tar.gz"
|
|
builddir="$srcdir/$_realname-$pkgver"
|
|
provides="libqmatrixclient=$pkgver-r$pkgrel" # Rename compat
|
|
replaces="libqmatrixclient" # Rename compat
|
|
|
|
build() {
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
|
fi
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=True \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
|
|
-DBUILD_SHARED_LIBS=1 \
|
|
-DQMATRIXCLIENT_INSTALL_EXAMPLE=0 \
|
|
${CMAKE_CROSSOPTS}
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
dev() {
|
|
provides="libqmatrixclient-dev=$pkgver-r$pkgrel" # Rename compat
|
|
replaces="libqmatrixclient-dev" # Rename compat
|
|
default_dev
|
|
}
|
|
|
|
sha512sums="d1037139d62c41e35cd415e85ec8b7d3577af193e19a4307bcd65f83f43a54e015e4a888a0c26a266e41df613a329edd985e8935a9ea9d54f19662fdbfe55577 libquotient-0.5.2.tar.gz"
|