From 92db971082f8041430dd12ffc30b8c59d34ed5da Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 30 Sep 2017 23:58:41 -0500 Subject: user/kdeclarative: new package --- user/kdeclarative/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 user/kdeclarative/APKBUILD (limited to 'user') diff --git a/user/kdeclarative/APKBUILD b/user/kdeclarative/APKBUILD new file mode 100644 index 000000000..8f2a3b956 --- /dev/null +++ b/user/kdeclarative/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kdeclarative +pkgver=5.38.0 +pkgrel=0 +pkgdesc="Frameworks for creating KDE components using QML" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1" +options="!check" # Requires accelerated X11 desktop running +depends="" +depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev kiconthemes-dev kio-dev + kpackage-dev libepoxy-dev" +makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev" +install="" +subpackages="$pkgname-dev $pkgname-lang" +source="http://download.kde.org/stable/frameworks/5.38/kdeclarative-$pkgver.tar.xz" +builddir="$srcdir/kdeclarative-$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="72ea8b2f17792e3075800de93882c0a0b03732121eef43ab38285c0d1988e148e079f40dd6d4fc8afef75bda47f2e02a3ac84b9546c6a6991b10aade1dbcb978 kdeclarative-5.38.0.tar.xz" -- cgit v1.2.3-70-g09d2