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


                                                  
              



                                                          
                      




                                                                             
                                                                     
                                        
                                                                                            
                        
         

         









                                                                                          
                                     
                                    



            



                                          


                                      

                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=spectacle
pkgver=19.12.0
pkgrel=0
pkgdesc="Application for capturing desktop screenshots"
url="https://www.kde.org/applications/graphics/spectacle/"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
	kcoreaddons-dev kwidgetsaddons-dev kdbusaddons-dev knotifications-dev
	kconfig-dev ki18n-dev kio-dev kxmlgui-dev kwindowsystem-dev python3
	kdoctools-dev kdeclarative-dev xcb-util-image-dev xcb-util-cursor-dev
	libxcb-dev xcb-util-renderutil-dev knewstuff-dev libkipi-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/spectacle-$pkgver.tar.xz
	no-wayland.patch
	"

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" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DBUILD_TESTING=OFF \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="b1ae329943876d4f634d3112304ab4f21a6fa24526ad15d19e2a058506c41a40c872c62ce58ed988c416334d08219c4d93fc57adcb8292ad32cc260b9ffee6c7  spectacle-19.12.0.tar.xz
36665d1b7d8b7c8004e457179f03fff1eed3865ee3e558f44f19022b80e39bbb2659de3e7b9affe654d5dbc5077890b38b6b4351f3a43324733749fbd36880ac  no-wayland.patch"