Commit 26095f67 authored by Xuetian Weng's avatar Xuetian Weng

build some kf5 package

parent f8674242
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=attica-qt5
_pkgname=attica
pkgver=${KFVersion}
pkgrel=1
arch=('x86_64')
url='https://projects.kde.org/projects/kdesupport/${_pkgname}'
pkgdesc='A Qt5 library that implements the Open Collaboration Services API'
license=('LGPL')
depends=('qt5-base')
makedepends=('extra-cmake-modules')
checkdepends=("cmake")
options=("debug")
source=("${KFServer}/${pkgver}/${_pkgname}-${pkgver}.tar.xz")
replaces=("kf5-attica")
provides=("kf5-attica")
conflicts=("kf5-attica")
sha256sums=($(getSum $_pkgname))
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${_pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=extra-cmake-modules
pkgver=$KFECMVersion
pkgrel=1
pkgdesc='Extra CMake modules'
arch=('any')
url='https://projects.kde.org/projects/kdesupport/extra-cmake-modules'
license=('LGPL')
depends=('cmake')
makedepends=('qt5-tools' 'python3-sphinx')
source=("$KFServer/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum $pkgname) )
prepare() {
mkdir -p build
}
check() {
cd build
make test
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=$KFInstallPrefix \
-DCMAKE_BUILD_TYPE=$KFBuildType
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# the install prefix
KFInstallPrefix="/usr"
# download location
KFServer="http://download.kde.org/stable/frameworks/5.4"
KFQtVersion=5.3.2
KFECMVersion=1.4.0
# Frameworks version
KFVersion="5.4.0"
# Build type; can be one of Debug,Release and RelWithDebInfo
KFBuildType="RelWithDebInfo"
function getSum() {
awk "\$2 ~ /${1}-/ {print \$1}" ../frameworks.sums ;
}
#
# Chakra GNU/Linux Buildscript Config file
#
# Desktop v.10.08.2014
#
# These are the building "groups" or "package lists"
# (or stages"). Every group must be prefixed with
# "_build_" followed by the repo name_branch
# and finally a identifier like "support".
#
# You can create/delete/modify groups as you like,
# the buildscripts will detect all changes like
# new/deleted groups automatically and offer them
# in their options
_build_desktop_kf5="
extra-cmake-modules
kapidox
attica-qt5
ki18n
kconfig
kcoreaddons
kwindowsystem # next release fix hard version 5.3.1
kcrash
kdbusaddons
karchive
kdoctools
kservice
kauth
kcodecs
kguiaddons
kwidgetsaddons
kconfigwidgets
kitemviews
kiconthemes
kcompletion
sonnet
ktextwidgets
kglobalaccel
kxmlgui
kbookmarks
#libdbusmenu-qt5
knotifications
kwallet
solid
kjobwidgets
kio
kcmutils
kdeclarative
kactivities-frameworks
kinit
kded
kparts
kplotting
kdewebkit
kdesignerplugin
kpty
kdesu
kemoticons
kjs
kjsembed
kmediaplayer
knotifyconfig
knewstuff
kross
kidletime
kitemmodels
threadweaver
kunitconversion
kdnssd
plasma-framework
krunner
ktexteditor
frameworkintegration
kdelibs4support
khtml"
_build_desktop_kf5_additionals="sddm-kcm"
\ No newline at end of file
c98fb7a7cf21badc391cdc5060ca011d5b287b693e26e65667f74b6897532c74 attica-5.4.0.tar.xz
b36838f930f789ca210e5ce898ab732bc165ae78d1c5f380d7ee1f1ad890f745 extra-cmake-modules-1.4.0.tar.xz
eabbbbafe35501d7c844995d985c43729c75666f44988b1951cf530080126919 frameworkintegration-5.4.0.tar.xz
1c0474bbb6ead98e48e838c9156fc2841c87998fbc27e8547f1a10f37d654bbc kactivities-5.4.0.tar.xz
41a83bc2fbd359904de916471db4d39be7b757a254d06f956cbf2a1491b9a72e kapidox-5.4.0.tar.xz
a44086908ea557706f373124fb10928081cd1cedea8b17516cf06f7c97d40e3b karchive-5.4.0.tar.xz
71568b0a038f65bb810e51bb057ebf728c5066c6a3583a11c7a2fdd991c62c97 kauth-5.4.0.tar.xz
5c681742db57b7dff853ba2959fb8a2c37e353010c4b2aeaa258c034d7a0cac3 kbookmarks-5.4.0.tar.xz
231886005345b2194dd2d84eb1e1cb28b03dd18414a2a8bc3ee163eca5f42f37 kcmutils-5.4.0.tar.xz
7291d8be7636575ceb2e96b37334c2ae634914e4ad694c376282459cf4ee5dbf kcodecs-5.4.0.tar.xz
4efb5a8ae118aba14232898504ada121bb48ce2e453f854e11e867016b75822c kcompletion-5.4.0.tar.xz
a299ce223405f7b8d19898b072439f4089f31129d1c251cdc7f60153e21d7a9d kconfig-5.4.0.tar.xz
891987c0b418c6d9fc51a0fe270a906d51e063431b0f6ea505cc9ef72afce78d kconfigwidgets-5.4.0.tar.xz
2a4ff217ff053a6893df6cce28977ee0118687cd3283732449e7c37dc099608d kcoreaddons-5.4.0.tar.xz
1920c0c831b5078b73b9944ac6110f1bb45b963ae058eafd846740a37f3ba105 kcrash-5.4.0.tar.xz
4d8c9aa9d0008ca05726d0a3449e926a194cf5ce6d28acfc3147882cf2162d30 kdbusaddons-5.4.0.tar.xz
14bb9d9922be59ed3834d41cfc9d737d42d3e1f49855051ebf1d63530c2b26f7 kdeclarative-5.4.0.tar.xz
3b9a371c3a1e8dd52f36ff9b0fc3ea22b2cbd827b8972cb39e61d3bf788880df kded-5.4.0.tar.xz
0f54073900b7b9f6310f14fa1bd5afa1a64f466f862e12d24ab3ea93806d478a kdesignerplugin-5.4.0.tar.xz
9de320b60af30ec9ac58cc57829c6ad50801642c6befaaafb3846115371a3701 kdesu-5.4.0.tar.xz
190de9cdb4b801824baec9cfc96e314eeae6774f16855b6eff4bfd0df3f20b48 kdewebkit-5.4.0.tar.xz
2d7739c676d3ce90fa8848d20088f614d542481adb23330a2f57964ac12221e6 kdnssd-5.4.0.tar.xz
83cb75edab4d770f3dd97c5d9d3833cb34cefc2bb9199e8fa45fe9e177d9bca7 kdoctools-5.4.0.tar.xz
2c56d8c871474e691a9d8799cd1f09f0219194d5abea089dc8a8390b7f198da0 kemoticons-5.4.0.tar.xz
2acfb0dde3ea0d52c5d1857c11c5db8d753302b7e50342810c8ae9cb20a357f3 kglobalaccel-5.4.0.tar.xz
f2803cc135478054314d49cf94b40d291dcc5b8005f89592b05b5d789f90ca74 kguiaddons-5.4.0.tar.xz
c435713ea49479fe2760977a365082df3fb1c62461f375a48583464d0121b87e ki18n-5.4.0.tar.xz
737f62d681aa272bbecb5a5ecdbb203a1a392dac2254ed72c874bf63c010feab kiconthemes-5.4.0.tar.xz
531a751c3ce733a9131724737fa4450655ce82d5585ae3898e051d9ee85952a0 kidletime-5.4.0.tar.xz
535507e59d769f2e11ff366070eaf30e80f341ffe16ae440d80e86b181fc0dd5 kimageformats-5.4.0.tar.xz
ded7e525713b2e3166eb8d4518fc40fcc00ad06ac616ba5ea4eb389b5d19464a kinit-5.4.0.tar.xz
a5234abb3a7a583c12eeab55c77d2465617a823664688daaf90a8c150116f69d kio-5.4.0.tar.xz
19b3c8ee6fa6908fee99ce82b409e95870c309ebc7692fb0aa0a70c46c56c3a8 kitemmodels-5.4.0.tar.xz
46cd548192db50ecad9faf6748aaa35b0302b3f3bc1401d3e47817c8e6f8af26 kitemviews-5.4.0.tar.xz
7f578cafce7b646c2c9699f4cba79e6fac040633e02f5a66df027a1ef0755c74 kjobwidgets-5.4.0.tar.xz
75608a2a14543d43a392ac680a14034dda0e87e5d659a597d9b4cf3a79f9c569 knewstuff-5.4.0.tar.xz
1b75241d6cbd6b4dbfc7d5a647cdd5b31631f7a164cead6aee3cc2c60fddd7e6 knotifications-5.4.0.tar.xz
b57b616a8c1a7d85b02912c03d994b1f1326b5525ac03b0c37b4e03462139db9 knotifyconfig-5.4.0.tar.xz
0356074178fe853b1a66596e633c72825565f84094b46716621b30a8e3dfa63a kparts-5.4.0.tar.xz
2958e178ef2f8f8f570466ead64661346dbd2f2ef39ea48108c6a51c752faa5d kplotting-5.4.0.tar.xz
d62fde0df7a10633ea10488a8a84432bfb3576b18c810d7bd646c450252b4ca5 kpty-5.4.0.tar.xz
5d91d7fa075a2e3dbe13feecf90d8e9e633f8d32ab328581f103b1dcd95fcd32 kservice-5.4.0.tar.xz
c0e3b7f39b48e4493a2c0951a8b82d12f3c413c5983e1663d07e879da74713b1 ktexteditor-5.4.0.tar.xz
43e4b09197a7ca6ef14d6c7710a0c2260b718f9fff47f643850a7669bceb36f8 ktextwidgets-5.4.0.tar.xz
028c3262b99211b6aa45db4e0d77c56275b1a0af99cf986dffd0ba7f1199096b kunitconversion-5.4.0.tar.xz
95d93eeedf03433337d2d18b7d4d8425665e1e2f0957a8479e94ee7c9db4b392 kwallet-5.4.0.tar.xz
fe584776adde932b4e88b76a15c06c9d7f21a0a179b3ef01ad4e954897da8782 kwidgetsaddons-5.4.0.tar.xz
4ebbfdfa6533bab6144bbb6d012dcbd84c00628fcc45a1e89270cbb6b8dcbf02 kwindowsystem-5.4.0.tar.xz
4d4606f1dcd4a1dd7e8d8cc3339bfee870550ee412eb229e1d4914f15bba6e5b kxmlgui-5.4.0.tar.xz
14d1a9768d44b76b7c42a6a5e24ad088120afbd0e253bd7115160c644ce98cf7 plasma-framework-5.4.0.tar.xz
40a63c3bbf3a024a4638e720e3d615b50954bb75425fa8e5e6758df1489fac5b solid-5.4.0.tar.xz
c2263361e6a37174a6b8ebcb0727e615348b9171ca0d4da00637ba30e78daace sonnet-5.4.0.tar.xz
05b18af92a0913966f3a3047633200231563504f5649f0ce196ac33d98340385 threadweaver-5.4.0.tar.xz
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kapidox
pkgver=$KFVersion
pkgrel=1
pkgdesc='Frameworks API Documentation Tools'
arch=('any')
url='https://projects.kde.org/projects/frameworks/kapidox'
license=('LGPL')
depends=('python3-jinja' 'python3-yaml')
makedepends=("extra-cmake-modules>=$KFECMVersion")
groups=('kf5')
options=("debug")
source=("$KFServer/${pkgname}-${pkgver}.tar.xz")
sha256sums=($(getSum ${pkgname}))
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DPYTHON_EXECUTABLE=/usr/bin/python3
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=karchive
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Qt 5 addon providing access to numerous types of archives'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/karchive'
license=('LGPL')
depends=("qt5-base>=${KFQtVersion}")
makedepends=("extra-cmake-modules>=${KFECMVersion}")
groups=('kf5')
options=("debug")
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum $pkgname) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kauth
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Abstraction to system policy and authentication features'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kauth'
license=('LGPL')
depends=('kcoreaddons' 'polkit-qt5')
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'qt5-tools')
checkdepends=('cmake')
groups=('kf5')
options=("debug")
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
}
echo ${KFBuildType}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-DLIBEXEC_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DSYSCONF_INSTALL_DIR=/etc
make
}
check() {
cd build
eval `dbus-launch --sh-syntax `
make test
kill $DBUS_SESSION_BUS_PID
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor : Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kcodecs
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Plugins allowing Qt applications to access further types of images'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kcodecs'
license=('LGPL')
depends=("qt5-base>=${KFQtVersion}")
makedepends=('extra-cmake-modules' 'qt5-tools')
checkdepends=('cmake')
options=("debug")
groups=('kf5')
source=("${KFServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum $pkgname ) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kconfig
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Offers functionality around reading and writing configuration'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kconfig'
license=('LGPL')
depends=("qt5-base>=${KFQtVersion}")
makedepends=("extra-cmake-modules>=${KFECMVersion}" "qt5-tools")
checkdepends=("xorg-server-xvfb")
groups=('kf5')
options=("debug")
source=("${KFServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-DLIBEXEC_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
check() {
cd build
xvfb-run make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor : Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kcoreaddons
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Addons to QtCore'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kcoreaddons'
license=('LGPL')
depends=("qt5-base>=${KFQtVersion}" 'shared-mime-info' 'gamin')
makedepends=('extra-cmake-modules' 'qt5-tools')
groups=('kf5')
install=${pkgname}.install
source=("$KFServer/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-D_KDE4_DEFAULT_HOME_POSTFIX=4 \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
post_install() {
update-mime-database usr/share/mime > /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kcrash
pkgver=${KFVersion}
pkgrel=1
pkgdesc='KCrash'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kcrash'
license=('LGPL')
depends=('kcoreaddons' 'kwindowsystem')
makedepends=('extra-cmake-modules')
groups=('kf5')
options=("debug")
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-DLIBEXEC_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
check() {
cd build
xvfb-run make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kdbusaddons
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Provides API for registering services, KDED modules and applications according to Freedesktop standards.'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kdbusaddons'
license=('LGPL')
depends=("qt5-base>=${KFQtVersion}" 'qt5-x11extras')
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'qt5-tools')
checkdepends=("dbus-core")
groups=('kf5')
source=("${KFServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}
check() {
cd build
eval `dbus-launch --sh-syntax `
make test
kill $DBUS_SESSION_BUS_PID
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor : Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kdoctools
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Various tools to work with documentation'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kdoctools'
license=('LGPL')
depends=('karchive' 'docbook-xsl')
makedepends=("extra-cmake-modules>=${KFECMVersion}" "ki18n" "python3")
groups=('kf5')
options=('staticlibs' 'debug')
source=("${KFServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DLIB_INSTALL_DIR=lib
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>