diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-30 02:47:44 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-30 02:47:44 -0500 |
commit | 30998ab279d0103adb3f9f1d7d57e440195bd8d7 (patch) | |
tree | ade883fb62d0a6d7265f9b8b97a412a5b6c73b7c /user | |
parent | d86bd045f7ee4ff434cc121513c1a237ec21315c (diff) | |
download | packages-30998ab279d0103adb3f9f1d7d57e440195bd8d7.tar.gz packages-30998ab279d0103adb3f9f1d7d57e440195bd8d7.tar.bz2 packages-30998ab279d0103adb3f9f1d7d57e440195bd8d7.tar.xz packages-30998ab279d0103adb3f9f1d7d57e440195bd8d7.zip |
user/kitemmodels: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/kitemmodels/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/kitemmodels/APKBUILD b/user/kitemmodels/APKBUILD new file mode 100644 index 000000000..93c844aeb --- /dev/null +++ b/user/kitemmodels/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=kitemmodels +pkgver=5.38.0 +pkgrel=0 +pkgdesc="Framework for sorting and searching objects" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1" +depends="" +depends_dev="qt5-qtbase-dev" +makedepends="$depends_dev cmake extra-cmake-modules" +install="" +subpackages="$pkgname-dev" +source="http://download.kde.org/stable/frameworks/5.38/kitemmodels-$pkgver.tar.xz" +builddir="$srcdir/kitemmodels-$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="19a9d236a75b50d53e6a8ac97af8213e497ff8b3838e377a2f8f9f358796bbccee19f41849319b9501fa6959886be13f682dc8c97f026d3893c4a946960321f8 kitemmodels-5.38.0.tar.xz" |