From 6a17dae969d2aa02c456fa8e6bd2522bd0a469de Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 29 Sep 2017 23:11:50 -0500 Subject: user/kpty: new package --- user/kpty/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 user/kpty/APKBUILD diff --git a/user/kpty/APKBUILD b/user/kpty/APKBUILD new file mode 100644 index 000000000..522016193 --- /dev/null +++ b/user/kpty/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kpty +pkgver=5.38.0 +pkgrel=0 +pkgdesc="Framework for implementing terminal emulation" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1 GPL-2.0+" +depends="" +depends_dev="qt5-qtbase-dev kcoreaddons-dev ki18n-dev" # libutempter-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/kpty-$pkgver.tar.xz" +builddir="$srcdir/kpty-$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="e5619a77630d82cd8cac52e536dd982b996bba3b0ba6d8a2e25068b2d0ba735c367073e2319c2cd95930db0cba510d92763fb93b06fbd26149419899c4aecb7e kpty-5.38.0.tar.xz" -- cgit v1.2.3-70-g09d2