diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-30 23:58:41 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-30 23:58:41 -0500 |
commit | 92db971082f8041430dd12ffc30b8c59d34ed5da (patch) | |
tree | f955ac17b91e971b490a8d5f4dfd2bdaa88278dc | |
parent | ff04d0de39551319260bae3bab4e02d2f533a5ad (diff) | |
download | packages-92db971082f8041430dd12ffc30b8c59d34ed5da.tar.gz packages-92db971082f8041430dd12ffc30b8c59d34ed5da.tar.bz2 packages-92db971082f8041430dd12ffc30b8c59d34ed5da.tar.xz packages-92db971082f8041430dd12ffc30b8c59d34ed5da.zip |
user/kdeclarative: new package
-rw-r--r-- | user/kdeclarative/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
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 <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +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" |