diff options
Diffstat (limited to 'user/krfb')
-rw-r--r-- | user/krfb/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/user/krfb/APKBUILD b/user/krfb/APKBUILD new file mode 100644 index 000000000..15e748b89 --- /dev/null +++ b/user/krfb/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=krfb +pkgver=17.08.2 +pkgrel=0 +pkgdesc="Share your screen with others for remote watching or assistance" +url="https://www.kde.org/applications/system/krfb/" +arch="all" +license="GPL-2.0" +depends="" +makedepends="cmake qt5-qtbase-dev qt5-qtx11extras-dev extra-cmake-modules + ki18n-dev kcompletion-dev kconfig-dev kcoreaddons-dev kcrash-dev + kdbusaddons-dev kdnssd-dev kdoctools-dev knotifications-dev kwallet-dev + kwidgetsaddons-dev kxmlgui-dev xcb-util-image-dev libvncserver-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/krfb-$pkgver.tar.xz" +builddir="$srcdir/krfb-$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="4aa3f02403c399fd0cca9112c63e90a3c057ed48a8265af91e38f88f8cb8e58a7d78869e8a25c73d500c9700ba51db3ba07edc6054045fa04764c4de3b9db9b0 krfb-17.08.2.tar.xz" |