aboutsummaryrefslogtreecommitdiffstats
path: root/testing/screengrab/APKBUILD
blob: 610ffdf97fc57efb86c30196e270063e3294411c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=screengrab
pkgver=2.1.0
pkgrel=0
pkgdesc="Crossplatform tool for fast making screenshots"
url="https://github.com/lxqt/screengrab"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	cmake lxqt-build-tools qt5-qtbase-dev qt5-qttools-dev
	libqtxdg-dev kwindowsystem-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/lxqt/screengrab/releases/download/$pkgver/screengrab-$pkgver.tar.xz"
options="!check" # No testsuite

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		$CMAKE_CROSSOPTS .
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="dd14d8d6c957a58c60d73cf82d6a65fc182c85a9f078663caf6686e424b292a1c579d493acac03c6ee2acd4605fc025d5a5e94b3161f3c30778cc1452056af27  screengrab-2.1.0.tar.xz"