summaryrefslogblamecommitdiff
path: root/user/libquotient/APKBUILD
blob: 4eb2070be19c925895a7dd73244d1d1f4a54695c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                  
                   
              

                                                                  
                                                                



                            
                                                     
                          


                                                                                                      

         








                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libquotient
pkgver=0.5.3.2
pkgrel=0
pkgdesc="Library to interface with Matrix chat systems using Qt 5"
url="https://matrix.org/docs/projects/sdks/#lib-q-matrix-client"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev cmake qt5-qtmultimedia-dev"
subpackages="$pkgname-dev"
replaces="libqmatrixclient"
source="libquotient-$pkgver.tar.gz::https://github.com/quotient-im/libQuotient/archive/$pkgver.tar.gz"
builddir="$srcdir"/libQuotient-$pkgver

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=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b887432ba7fb2b89c72ae5342fbd11b0066770851e8d0ea85ae4d6375bca726a5ee601c4f3d35a11fa1f2ef679ad5436917c08139e114f91516ccb370321e428  libquotient-0.5.3.2.tar.gz"