build some kf5 package

This commit is contained in:
Weng Xuetian 2014-11-13 22:49:11 +00:00
parent f867424249
commit 26095f675a
23 changed files with 961 additions and 0 deletions

45
attica-qt5/PKGBUILD Normal file
View File

@ -0,0 +1,45 @@
# 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
}

View File

@ -0,0 +1,37 @@
# 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
}

15
frameworks.conf Normal file
View File

@ -0,0 +1,15 @@
# 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 ;
}

78
frameworks.order Normal file
View File

@ -0,0 +1,78 @@
#
# 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"

53
frameworks.sums Normal file
View File

@ -0,0 +1,53 @@
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

35
kapidox/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
# 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
}

41
karchive/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
# 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
}

47
kauth/PKGBUILD Normal file
View File

@ -0,0 +1,47 @@
# 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
}

42
kcodecs/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# 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
}

43
kconfig/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
# 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
}

38
kcoreaddons/PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# 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
}

View File

@ -0,0 +1,11 @@
post_install() {
update-mime-database usr/share/mime > /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

42
kcrash/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# 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
}

43
kdbusaddons/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
# 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
}

41
kdoctools/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
# 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
}

42
ki18n/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=ki18n
pkgver=${KFVersion}
pkgrel=1
pkgdesc='A get-text based translation framework'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/ki18n'
license=('LGPL')
depends=("qt5-script>=${KFQtVersion}")
makedepends=("extra-cmake-modules>=${KFECMVersion}")
groups=('kf5')
options=("debug")
source=("$KFServer/${KFVersion}/${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 \
-DPYTHON_EXECUTABLE=/usr/bin/python3
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}

46
kservice/PKGBUILD Normal file
View File

@ -0,0 +1,46 @@
# Contributor : Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kservice
pkgver=${KFVersion}
pkgrel=1
pkgdesc='Advanced plugin and service introspection'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kservice'
license=('LGPL')
depends=('ki18n' 'kconfig' 'kcrash' 'kdbusaddons')
makedepends=('extra-cmake-modules' 'kdoctools' 'python3')
checkdepends=('xorg-server-xvfb' 'kded')
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 \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DSYSCONF_INSTALL_DIR=/etc
make
}
check() {
cd build
eval `dbus-launch --sh-syntax `
xvfb-run make test
kill $DBUS_SESSION_BUS_PID
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}

42
kwindowsystem/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kwindowsystem
pkgver=${KFVersion}
pkgrel=1
pkgdesc='KWindowSystem'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kwindowsystem'
license=('LGPL')
depends=("qt5-x11extras>=${KFQtVersion}" 'libxfixes')
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'qt5-tools')
checkdepends=('cmake' 'xorg-server-xvfb' 'openbox')
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
xvfb-run -s "-screen 0 640x480x24" sh -c "openbox & sleep 1; make test"
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}

60
openbox/PKGBUILD Normal file
View File

@ -0,0 +1,60 @@
# Contributor: Florian pritz <bluewind@xinu.at>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: tobias <tobias@archlinux.org>
pkgname=openbox
pkgver=3.5.2
pkgrel=2
pkgdesc='Highly configurable and lightweight X11 window manager'
arch=('i686' 'x86_64')
url='http://openbox.org'
license=('GPL')
depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr'
'libxcursor' 'pango' 'imlib2' 'librsvg' 'libsm')
optdepends=('kdebase-workspace: for the KDE/Openbox xsession'
'python2-xdg: for the openbox-xdg-autostart script')
groups=('lxde')
backup=('etc/xdg/openbox/menu.xml' 'etc/xdg/openbox/rc.xml'
'etc/xdg/openbox/autostart' 'etc/xdg/openbox/environment')
source=(http://www.icculus.org/openbox/releases/$pkgname-$pkgver.tar.gz
openbox-3.5.0-title-matching.patch
openbox-3.5.0-which-2.20.patch)
md5sums=('93df606606053b7e8578a5c116afb8ec'
'0a11d7149da210a31ef88f8a9c717711'
'7ca3b5244bb092d46f5bcf1e2bdf4a18')
prepare() {
cd $pkgname-$pkgver
patch -Np1 -i "$srcdir"/openbox-3.5.0-title-matching.patch # OB#5277
patch -Np1 -i "$srcdir"/openbox-3.5.0-which-2.20.patch # FS#11455
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \
data/autostart/openbox-xdg-autostart
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--with-x \
--enable-startup-notification \
--sysconfdir=/etc \
--libexecdir=/usr/lib/openbox
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# GNOME Panel is no longer available in the official repositories
rm -r "$pkgdir"/usr/bin/{gdm-control,gnome-panel-control,openbox-gnome-session} \
"$pkgdir"/usr/share/gnome{,-session} \
"$pkgdir"/usr/share/man/man1/openbox-gnome-session.1 \
"$pkgdir"/usr/share/xsessions/openbox-gnome.desktop
sed -i 's:startkde:/usr/bin/\0:' \
"$pkgdir"/usr/share/xsessions/openbox-kde.desktop
}

View File

@ -0,0 +1,11 @@
--- openbox-3.5.0/openbox/client.c 2011-08-01 22:14:58.000000000 +0200
+++ openbox-3.5.0/openbox/client.c 2011-10-22 14:59:56.000000000 +0200
@@ -883,7 +883,7 @@
!g_pattern_match(app->role,
strlen(self->role), self->role, NULL))
match = FALSE;
- else if (app->title &&
+ else if (app->title && self->title &&
!g_pattern_match(app->title,
strlen(self->title), self->title, NULL))
match = FALSE;

View File

@ -0,0 +1,11 @@
--- openbox-3.5.0/data/autostart/autostart.in~ 2011-08-02 15:50:01.963531310 +0000
+++ openbox-3.5.0/data/autostart/autostart.in 2011-08-02 15:51:57.277879458 +0000
@@ -8,7 +8,7 @@
#
#if test -x @libexecdir@/gnome-settings-daemon >/dev/null; then
# @libexecdir@/gnome-settings-daemon &
-#elif which gnome-settings-daemon >/dev/null; then
+#elif which gnome-settings-daemon >/dev/null 2>&1; then
# gnome-settings-daemon &
#fi

59
polkit-qt/PKGBUILD Normal file
View File

@ -0,0 +1,59 @@
# $Id: PKGBUILD 102633 2010-12-09 08:40:59Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgbase=polkit-qt
pkgname=('polkit-qt4' 'polkit-qt5')
pkgver=0.112.0
# we use 0.x since it's not released yet
pkgrel=0.1
pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API'
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kdesupport/polkit-qt-1'
license=('LGPL')
makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base')
source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2"
'systembus-usage.patch')
md5sums=('bee71b71c12797e6fc498540a06c829b'
'067355984adf2cd87e2fac715bd025f3')
prepare() {
mkdir build{,-qt5}
cd ${pkgbase}-1-${pkgver}
patch -p1 -i "${srcdir}"/systembus-usage.patch
}
build() {
cd build
cmake ../${pkgbase}-1-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_DESTINATION=/usr/lib \
-DUSE_QT4=ON
make
cd ../build-qt5
cmake ../${pkgbase}-1-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_DESTINATION=/usr/lib
make
}
package_polkit-qt4() {
depends=('polkit' 'qt4')
replaces=('polkit-qt')
provides=('polkit-qt')
conflicts=('polkit-qt')
cd build
make DESTDIR="${pkgdir}" install
}
package_polkit-qt5() {
depends=('polkit' 'qt5-base')
cd build-qt5
make DESTDIR="${pkgdir}" install
}

View File

@ -0,0 +1,79 @@
commit 88c6e9334c8440721189ef7d020fa94d47f30f8b
Author: Harald Sitter <sitter@kde.org>
Date: Fri Aug 1 16:34:03 2014 +0200
do not use global static systembus instance
global static destruction order cannot be controlled and we need our bus
to disconnect from the consolekit signals, so use our own bus instance
to connect to systembus signals
REVIEW: 119545
diff --git a/core/polkitqt1-authority.cpp b/core/polkitqt1-authority.cpp
index dd014cf..f25354d 100644
--- a/core/polkitqt1-authority.cpp
+++ b/core/polkitqt1-authority.cpp
@@ -83,7 +83,10 @@ public:
// Polkit will return NULL on failures, hence we use it instead of 0
Private(Authority *qq) : q(qq)
, pkAuthority(NULL)
- , m_hasError(false) {}
+ , m_hasError(false)
+ , m_systemBus(0)
+ {
+ }
~Private();
@@ -103,6 +106,13 @@ public:
bool m_hasError;
Authority::ErrorCode m_lastError;
QString m_errorDetails;
+ // Local system bus. QDBusConnection::systemBus() may only be savely used
+ // inside a QCoreApplication scope as for example destruction of connected
+ // objects need to happen before the bus disappears. Since this class however
+ // is a global static and systemBus() internally is a global static we
+ // cannot assure destruction order. Instead we create a local copy of the
+ // global systemBus instance so we can make life time to our needs.
+ // This prevents crashes when cleaning up the global statics.
QDBusConnection *m_systemBus;
GCancellable *m_checkAuthorizationCancellable,
*m_enumerateActionsCancellable,
@@ -127,6 +137,7 @@ public:
Authority::Private::~Private()
{
+ delete m_systemBus;
g_object_unref(m_checkAuthorizationCancellable);
g_object_unref(m_enumerateActionsCancellable);
g_object_unref(m_registerAuthenticationAgentCancellable);
@@ -170,6 +181,9 @@ void Authority::Private::init()
g_type_init();
+ m_systemBus = new QDBusConnection(QDBusConnection::connectToBus(QDBusConnection::SystemBus,
+ QString("polkit_qt_system_bus")));
+
m_checkAuthorizationCancellable = g_cancellable_new();
m_enumerateActionsCancellable = g_cancellable_new();
m_registerAuthenticationAgentCancellable = g_cancellable_new();
@@ -219,7 +233,7 @@ void Authority::Private::init()
// then we need to extract all seats from ConsoleKit
QDBusMessage msg = QDBusMessage::createMethodCall(consoleKitService, consoleKitManagerPath, consoleKitManagerInterface, "GetSeats");
- msg = QDBusConnection::systemBus().call(msg);
+ msg = m_systemBus->call(msg);
if (!msg.arguments().isEmpty()) {
// this method returns a list with present seats
QList<QString> seats;
@@ -256,8 +270,7 @@ void Authority::Private::seatSignalsConnect(const QString &seat)
void Authority::Private::dbusSignalAdd(const QString &service, const QString &path, const QString &interface, const QString &name)
{
// FIXME: This code seems to be nonfunctional - it needs to be fixed somewhere (is it Qt BUG?)
- QDBusConnection::systemBus().connect(service, path, interface, name,
- q, SLOT(dbusFilter(QDBusMessage)));
+ m_systemBus->connect(service, path, interface, name, q, SLOT(dbusFilter(QDBusMessage)));
}
void Authority::Private::dbusFilter(const QDBusMessage &message)