Commit 0757acee authored by Xuetian Weng's avatar Xuetian Weng

move some kf5 package to platform, WIP

parent 12e84a5e
# 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' 'bzip2')
makedepends=('extra-cmake-modules' 'cmake')
checkdepends=('cmake')
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
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='KAuth'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kauth'
license=('LGPL')
depends=('kcoreaddons')
makedepends=('extra-cmake-modules' 'qt5-tools')
checkdepends=('cmake')
groups=('kf5')
options=("debug")
source=("${KFServer}/${pkgver}/${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 \
-DKAUTH_BACKEND_NAME=FAKE \
-DSYSCONF_INSTALL_DIR=/etc
make
}
check() {
cd build
msg "Tests currently don't work!"
return 0
make test
}
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')
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
make
}
check() {
cd build
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='KCoreAddons'
arch=('x86_64')
url='${KFServer}/kcoreaddons'
license=('LGPL')
depends=('qt5-base' 'shared-mime-info')
makedepends=('extra-cmake-modules' 'qt5-tools')
groups=('kf5')
install=kcoreaddons.install
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 \
-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}/${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
make
}
check() {
cd build
msg "currently failing, needs GUI?"
make test || return 0
}
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' 'qt5-x11extras')
makedepends=('extra-cmake-modules' 'qt5-tools')
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
make
}
check() {
cd build
msg "tests currently don't run, waits forever"
# make test
return 0
}
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')
checkdepends=('cmake')
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} \
-DLIB_INSTALL_DIR=lib
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
...@@ -10,7 +10,7 @@ arch=('x86_64') ...@@ -10,7 +10,7 @@ arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kinit' url='https://projects.kde.org/projects/frameworks/kinit'
license=('LGPL') license=('LGPL')
depends=('kio') depends=('kio')
makedepends=('extra-cmake-modules' 'kdoctools' 'qt5-tools') makedepends=("extra-cmake-modules>=${KFECMVersion}" 'kdoctools' 'qt5-tools')
checkdepends=('cmake') checkdepends=('cmake')
groups=('kf5') groups=('kf5')
options=("debug") options=("debug")
......
# Contributor : Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kservice
pkgver=${KFVersion}
pkgrel=1
pkgdesc='KService'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kservice'
license=('LGPL')
depends=('ki18n' 'kconfig' 'kcrash' 'kdbusaddons')
makedepends=('extra-cmake-modules' 'kdoctools')
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 \
-DSYSCONF_INSTALL_DIR=/etc
make -j
}
check() {
cd build
msg "currently failing, needs GUI?"
make test | return 0
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=kwindowsystem
#pkgver=${KFVersion}
pkgver=5.3.1
pkgrel=1
pkgdesc='KWindowSystem'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kwindowsystem'
license=('LGPL')
depends=('qt5-x11extras' 'libxfixes')
makedepends=('extra-cmake-modules' 'qt5-tools')
checkdepends=('cmake')
groups=('kf5')
options=('debug')
#source=("${KFServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
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
make
}
check() {
cd build
msg "test fails, requireq GUI?"
make test || return 0
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment