summaryrefslogblamecommitdiff
path: root/user/lxqt-openssh-askpass/APKBUILD
blob: 53895e9bbd7a5fc755af63689e14dcc04f2f3e79 (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=lxqt-openssh-askpass
pkgver=0.13.0
pkgrel=1
pkgdesc="Graphical LXQt utility for inputting passwords for SSH agents"
url="https://lxqt.org"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qttools-dev lxqt-build-tools>=0.5.0
	liblxqt-dev>=0.12.0 kwindowsystem-dev"
source="https://github.com/lxde/lxqt-openssh-askpass/releases/download/$pkgver/lxqt-openssh-askpass-$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" \
		-DPULL_TRANSLATIONS=False \
		${CMAKE_CROSSOPTS} ..
	make
}

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

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

sha512sums="2ef92c8a75139d8827e38e0f406f9f9f52717b0918ff511baa376825cfb586f2821186692e1e63bd4c569c441ea4eff63a11f59b89a90f47738ece86a898e761  lxqt-openssh-askpass-0.13.0.tar.xz"