diff options
author | Kiyoshi Aman <kiyoshi.aman+apkfission@gmail.com> | 2018-06-06 15:36:41 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+apkfission@gmail.com> | 2018-06-06 15:36:41 -0500 |
commit | 382c13e088bb6dd6f23559b7132abe71e7c9bb3c (patch) | |
tree | ee5efddd5e0e0a289d0edf99f21506253da28cd8 /user/screengrab/APKBUILD | |
parent | 08fe52a7566999d40aa7181d984f73777aa69379 (diff) | |
download | packages-382c13e088bb6dd6f23559b7132abe71e7c9bb3c.tar.gz packages-382c13e088bb6dd6f23559b7132abe71e7c9bb3c.tar.bz2 packages-382c13e088bb6dd6f23559b7132abe71e7c9bb3c.tar.xz packages-382c13e088bb6dd6f23559b7132abe71e7c9bb3c.zip |
user/screengrab: new package
Diffstat (limited to 'user/screengrab/APKBUILD')
-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" |