2019-06-17 13:40:39 +00:00
|
|
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
pkgname=ktp-common-internals
|
2019-11-14 13:05:50 +00:00
|
|
|
pkgver=19.08.2
|
2019-11-23 07:49:59 +00:00
|
|
|
pkgrel=1
|
2019-06-17 13:40:39 +00:00
|
|
|
pkgdesc="Library for KTp"
|
|
|
|
url="https://github.com/kde/ktp-common-internals"
|
2019-11-23 07:49:59 +00:00
|
|
|
_commit="6e0c62009bfaba906f9ca1886f02d3517de5c984"
|
2019-06-17 13:40:39 +00:00
|
|
|
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 telepathy-logger-qt-dev"
|
|
|
|
makedepends="$depends_dev extra-cmake-modules doxygen"
|
2019-11-23 07:49:59 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
#source="https://download.kde.org/stable/applications/$pkgver/src/ktp-common-internals-$pkgver.tar.xz
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://invent.kde.org/bshah/ktp-common-internals/-/archive/$_commit/ktp-common-internals-$_commit.tar.gz
|
2019-11-14 13:05:50 +00:00
|
|
|
fix-build.patch"
|
2019-11-23 07:49:59 +00:00
|
|
|
subpackages="$pkgname-dev" # $pkgname-lang
|
2019-09-07 20:08:43 +00:00
|
|
|
options="!check" # No tests
|
2019-06-17 13:40:39 +00:00
|
|
|
|
2019-11-14 13:05:50 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
mkdir "$builddir"/build
|
|
|
|
}
|
|
|
|
|
2019-06-17 13:40:39 +00:00
|
|
|
build() {
|
2019-11-14 13:05:50 +00:00
|
|
|
cd "$builddir"/build
|
|
|
|
cmake "$builddir" \
|
2019-06-17 13:40:39 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2019-09-07 20:08:43 +00:00
|
|
|
check() {
|
2019-11-14 13:05:50 +00:00
|
|
|
cd "$builddir"/build
|
2019-09-07 20:08:43 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
2019-06-17 13:40:39 +00:00
|
|
|
package() {
|
2019-11-14 13:05:50 +00:00
|
|
|
cd "$builddir"/build
|
2019-06-17 13:40:39 +00:00
|
|
|
DESTDIR="$pkgdir" make install
|
|
|
|
}
|
|
|
|
|
2019-11-23 07:49:59 +00:00
|
|
|
sha512sums="70b1d96698922c038fe70fc5b16a0bca148037cb0ee228f2072a830ef2fe9eb1a9f62855e6dd0b22a7cea735e6ad87329c658f7b5eefb6c4b355fc7d939de940 ktp-common-internals-6e0c62009bfaba906f9ca1886f02d3517de5c984.tar.gz
|
2019-11-14 13:05:50 +00:00
|
|
|
4a2b1fce5ae3f7c39709c4970d56008eede04dce5d5dc6dc7c185c67697893b205408e9501ddba52e15693f99d533c035a8c28de12ec24611e9422ab37143849 fix-build.patch"
|