diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/screengrab/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/screengrab/APKBUILD b/user/screengrab/APKBUILD new file mode 100644 index 000000000..de47dae2d --- /dev/null +++ b/user/screengrab/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +pkgname=screengrab +pkgver=1.98 +pkgrel=0 +pkgdesc="Cross-platform Qt-based software for taking screenshots" +url="https://github.com/lxqt/screengrab" +arch="all" +license="GPL-2.0+" +depends="" +depends_dev="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qttools-dev kwindowsystem-dev libqtxdg-dev $depends_dev" +install="" +subpackages="$pkgname-doc" +source="https://github.com/lxqt/screengrab/releases/download/$pkgver/screengrab-$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" \ + ${CMAKE_CROSSOPTS} .. + make +} + +check() { + cd "$builddir"/build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +sha512sums="7556fd1694d76c18ef5ff7ac3169024876c387f9a6e9da10bcd1400fb855a0cfc7878b4cad5bb06973011a8bd4cdb4e6dba5b7faaa3a01fe335e286dcfad5347 screengrab-1.98.tar.xz" |