diff options
Diffstat (limited to 'testing/screengrab/APKBUILD')
-rw-r--r-- | testing/screengrab/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/screengrab/APKBUILD b/testing/screengrab/APKBUILD new file mode 100644 index 00000000000..610ffdf97fc --- /dev/null +++ b/testing/screengrab/APKBUILD @@ -0,0 +1,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" |