summaryrefslogblamecommitdiff
path: root/user/qterminal/APKBUILD
blob: c91021fd608520a1fc196a4c8c726e8f09b64cd6 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           

             
                                    
                       
          
                                  

                  

                                                                          
                                                                                             





                                                                                          
                                  






                                                     
                                     



            
                            



                                          
                            


                                      
                                                                                                                                                                      
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=qterminal
pkgver=0.14.0
pkgrel=0
pkgdesc="Qt-based terminal for LXQt"
url="https://lxqt.org/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+"
depends=""
makedepends="cmake extra-cmake-modules lxqt-build-tools>=0.6.0
	qtermwidget-dev>=${pkgver%.*}.0 qt5-qttools-dev kwindowsystem-dev"
source="https://github.com/lxqt/qterminal/releases/download/$pkgver/qterminal-$pkgver.tar.xz"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	mkdir -p build && cd build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} ..
	make
}

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="8254b1604648a6d01eb1f55e3aa35dbcedff30998ee7c95e02558939f1cbb4f9fab3ca76118b654979cedff4e35a2cb3de01aab92b89d78b8c9332c36c10f0ec  qterminal-0.14.0.tar.xz"