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


                                                           
            






                                    
                                                                                                                                     

































                                                                                             
                                                                                                                                                                     
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=qterminal
pkgver=0.8.0
pkgrel=0
pkgdesc="Qt-based terminal for LXQt"
url="http://lxqt.org"
arch="all"
license="GPL-2.0+"
depends=""
depends_dev=""
makedepends="cmake extra-cmake-modules lxqt-build-tools>=0.4.0 qtermwidget-dev>=0.8.0 qt5-qttools-dev kwindowsystem-dev $depends_dev"
install=""
subpackages=""
source="https://github.com/lxde/qterminal/releases/download/$pkgver/qterminal-$pkgver.tar.xz"
builddir="$srcdir/qterminal-$pkgver"
# no tests
options="!check"

build() {
	cd "$builddir"
	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" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DPULL_TRANSLATIONS=False \
		${CMAKE_CROSSOPTS}
	make
}

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

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

sha512sums="c2046727900bfa8f389a90a38c3843131f324af0b2f52810966f5df624c74fee31c8825b7bd86d0b44c896d276fff6ffbf17dd9796143f5e3940b4ba33dd98af  qterminal-0.8.0.tar.xz"