summaryrefslogblamecommitdiff
path: root/user/lxqt-openssh-askpass/APKBUILD
blob: 4dc3032bd69ad0ccdf7b11e1d171ab7ae5f6af44 (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=lxqt-openssh-askpass
pkgver=0.12.0
pkgrel=0
pkgdesc="Graphical LXQt utility for querying for passwords on behalf of SSH agents"
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev=""
makedepends="cmake extra-cmake-modules lxqt-build-tools liblxqt-dev>=0.12.0 qt5-qttools-dev kwindowsystem-dev $depends_dev"
install=""
subpackages=""
source="https://github.com/lxde/lxqt-openssh-askpass/releases/download/$pkgver/lxqt-openssh-askpass-$pkgver.tar.xz"
builddir="$srcdir/lxqt-openssh-askpass-$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="8ac47e7cb2ba8d5c9b47fed3aee531b4a9b08a94d6b76651ee250699a6fad4765c27e94fd6f8e3aa7c59e2d9ea271641cd31db2e6611002d53e8cc037ae2ddf6  lxqt-openssh-askpass-0.12.0.tar.xz"