pmaports/temp/ktp-common-internals/APKBUILD

45 lines
1.6 KiB
Text
Raw Normal View History

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ktp-common-internals
pkgver=19.12.1_git20200119
pkgrel=0
_commit="d70b55bd9b6cdcab0b6b12369e38aef3a7e6bfa9"
pkgdesc="Library for KTp"
url="https://github.com/kde/ktp-common-internals"
arch="all"
license="LGPL-2.1-only AND GPL-2.0-only"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev knotifications-dev kio-dev kwidgetsaddons-dev kcmutils-dev knotifyconfig-dev ktexteditor-dev kwallet-dev kconfig-dev kwindowsystem-dev kemoticons-dev kiconthemes-dev kpeople-dev telepathy-qt-dev"
makedepends="$depends_dev extra-cmake-modules doxygen"
#source="https://download.kde.org/stable/release-service/$pkgver/src/ktp-common-internals-$pkgver.tar.xz"
source="$pkgname-$_commit.tar.gz::https://github.com/KDE/ktp-common-internals/archive/$_commit.tar.gz"
subpackages="$pkgname-dev" # $pkgname-lang is only available in release packages
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
check() {
cd "$builddir"/build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
}
sha512sums="b4374f07f928ee1736343fd890a7701a88568f33b10aa225b793728b9d4600837a7a25935c8b9a4d062687c588f9d46847703f28d198f21b4143467b1987cc14 ktp-common-internals-d70b55bd9b6cdcab0b6b12369e38aef3a7e6bfa9.tar.gz"