diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-09 21:39:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-09 21:39:30 -0500 |
commit | 8433dc8084462cf52f26ebfd14aff194db5c141a (patch) | |
tree | cf3784d40b20a3d24c582e8b519499e7e82462d2 /user | |
parent | 55309fcec8560ced39282790ad38cc9807252045 (diff) | |
download | packages-8433dc8084462cf52f26ebfd14aff194db5c141a.tar.gz packages-8433dc8084462cf52f26ebfd14aff194db5c141a.tar.bz2 packages-8433dc8084462cf52f26ebfd14aff194db5c141a.tar.xz packages-8433dc8084462cf52f26ebfd14aff194db5c141a.zip |
user/spectacle: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/spectacle/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/user/spectacle/APKBUILD b/user/spectacle/APKBUILD new file mode 100644 index 000000000..3fee5fa8a --- /dev/null +++ b/user/spectacle/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=spectacle +pkgver=17.08.1 +pkgrel=0 +pkgdesc="Application for capturing desktop screenshots" +url="https://www.kde.org/applications/graphics/spectacle/" +arch="all" +license="GPL-2.0" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev + kcoreaddons-dev kwidgetsaddons-dev kdbusaddons-dev knotifications-dev + kconfig-dev ki18n-dev kio-dev kxmlgui-dev kwindowsystem-dev python3 + kdoctools-dev kdeclarative-dev xcb-util-image-dev xcb-util-cursor-dev + libxcb-dev xcb-util-renderutil-dev" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/spectacle-$pkgver.tar.xz" +builddir="$srcdir/spectacle-$pkgver" + +build() { + cd "$builddir" + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + 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" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="5f204f74c01763d453278a7c716ee7dba428599e5289ca570e039865ef5db25ffc4e90c4617e8699dd732b10f4dcc8f5868946a6f17208ad4aceb0c411a4dd01 spectacle-17.08.1.tar.xz" |