summaryrefslogtreecommitdiff
path: root/user/kpty/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-29 23:11:50 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-29 23:11:50 -0500
commit6a17dae969d2aa02c456fa8e6bd2522bd0a469de (patch)
tree6cc123b4df57c3bda443592f6585a178950a89ed /user/kpty/APKBUILD
parent1fe0a09553e34aba4c749bd52d08483fc9e09b7b (diff)
downloadpackages-6a17dae969d2aa02c456fa8e6bd2522bd0a469de.tar.gz
packages-6a17dae969d2aa02c456fa8e6bd2522bd0a469de.tar.bz2
packages-6a17dae969d2aa02c456fa8e6bd2522bd0a469de.tar.xz
packages-6a17dae969d2aa02c456fa8e6bd2522bd0a469de.zip
user/kpty: new package
Diffstat (limited to 'user/kpty/APKBUILD')
-rw-r--r--user/kpty/APKBUILD44
1 files changed, 44 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+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"