aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoni Aloy Torrens <aaloytorrens@gmail.com>2021-02-12 02:07:09 +0100
committerLeo <thinkabit.ukim@gmail.com>2021-03-21 07:10:34 +0000
commit2f00d124161091a1d8bd562c8d896bda0e73d698 (patch)
treee2e6f59eeb0e7ac073ee0ecef41deef8f4f723b0
parent271ed43c3b6ec41183bfc19e7722d99feda8f22b (diff)
downloadaports-2f00d124161091a1d8bd562c8d896bda0e73d698.tar.gz
aports-2f00d124161091a1d8bd562c8d896bda0e73d698.tar.bz2
aports-2f00d124161091a1d8bd562c8d896bda0e73d698.tar.xz
testing/screengrab: new aport
-rw-r--r--testing/screengrab/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/screengrab/APKBUILD b/testing/screengrab/APKBUILD
new file mode 100644
index 0000000000..610ffdf97f
--- /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"