diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-14 04:34:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-03-14 04:34:30 -0500 |
commit | 340963f6d33884ec1f4da5d8a5df899b99f48bce (patch) | |
tree | 7cf100abf0536b7cdcd4c1e1d369ec07823d51be /user/kruler | |
parent | 3601cd1f61dd767acd5b06ebd09dc29553df51a0 (diff) | |
download | packages-340963f6d33884ec1f4da5d8a5df899b99f48bce.tar.gz packages-340963f6d33884ec1f4da5d8a5df899b99f48bce.tar.bz2 packages-340963f6d33884ec1f4da5d8a5df899b99f48bce.tar.xz packages-340963f6d33884ec1f4da5d8a5df899b99f48bce.zip |
user/kruler: new package
Diffstat (limited to 'user/kruler')
-rw-r--r-- | user/kruler/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/kruler/APKBUILD b/user/kruler/APKBUILD new file mode 100644 index 000000000..91599aa3d --- /dev/null +++ b/user/kruler/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=kruler +pkgver=17.12.2 +pkgrel=0 +pkgdesc="Screen ruler" +url="https://www.kde.org/applications/graphics/kruler/" +arch="all" +license="GPL-2.0-only" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev kdoctools-dev ki18n-dev + knotifications-dev kwindowsystem-dev kxmlgui-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/kruler-$pkgver.tar.xz" +builddir="$srcdir/kruler-$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="7d57153d64af46e7a957d3c35089eea8382af4da5ea3e1365a86003f3199732c9ac5d38a3f400817f1b51e8db21b7ceed498ead9a567fec30f9d8a038e5e62ee kruler-17.12.2.tar.xz" |