mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-15 19:49:03 +08:00
kdeadmin-kcron/print-manager: ported to KF5
This commit is contained in:
parent
edb43a8e38
commit
e568f8c92e
@ -1,48 +1,33 @@
|
|||||||
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
||||||
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
|
|
||||||
|
|
||||||
# Include global configuration
|
# Include global configuration
|
||||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
source ../kdeapps.conf
|
||||||
|
|
||||||
_pkgname="kcron"
|
_pkgname="kcron"
|
||||||
pkgname="kdeadmin-kcron"
|
pkgname=
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
pkgver=${_kdever}
|
pkgver=${_kdever}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
url="http://www.kde.org/"
|
url="http://www.kde.org/"
|
||||||
license=('GPL'
|
license=('GPL' 'LGPL' 'FDL')
|
||||||
'LGPL'
|
|
||||||
'FDL')
|
|
||||||
install=kdeadmin.install
|
install=kdeadmin.install
|
||||||
pkgdesc="Crontab editor"
|
pkgdesc="Crontab editor"
|
||||||
depends=("kde-runtime")
|
depends=("kde-runtime")
|
||||||
groups=("kdeadmin"
|
makedepends=()
|
||||||
"kde"
|
groups=("kdeadmin" "kde" "kde-uninstall")
|
||||||
"kde-uninstall")
|
conflicts=("kdeadmin-kcron")
|
||||||
conflicts=("kdeadmin-doc")
|
replaces=("kdeadmin-kcron")
|
||||||
|
provides=("kdeadmin-kcron")
|
||||||
categories=('system')
|
categories=('system')
|
||||||
options=('docs'
|
options=('docs' '!header' 'debug' 'log')
|
||||||
'!header'
|
|
||||||
'debug'
|
|
||||||
'log')
|
|
||||||
makedepends=('pkg-config'
|
|
||||||
'cmake'
|
|
||||||
'automoc4')
|
|
||||||
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
|
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
|
||||||
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
rm -rf "${srcdir}/build"
|
mkdir -p build
|
||||||
mkdir "${srcdir}/build"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/build"
|
cd build
|
||||||
cmake ../${_pkgname}-${pkgver} \
|
cmake_kf5 ../${pkgname}-${pkgver}
|
||||||
-DCMAKE_BUILD_TYPE=${_build_type} \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
||||||
-DCMAKE_SKIP_RPATH=ON \
|
|
||||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/kdeutils-print-manager/
|
||||||
# Include global configuration
|
# Include global configuration
|
||||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
source ../kdeapps.conf
|
||||||
|
|
||||||
pkgname=print-manager
|
pkgname=print-manager
|
||||||
pkgver=${_kdever}
|
pkgver=${_kdever}
|
||||||
@ -8,9 +9,9 @@ pkgdesc="A KDE tool for managing print jobs and printers"
|
|||||||
url="https://projects.kde.org/projects/playground/base/print-manager"
|
url="https://projects.kde.org/projects/playground/base/print-manager"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
license=('GPL' 'LGPL' 'FDL')
|
license=('GPL' 'LGPL' 'FDL')
|
||||||
depends=("kde-workspace>=${_workspace_ver}" "libcups")
|
depends=('kcmutils' 'libcups' 'plasma-framework')
|
||||||
optdepends=('system-config-printer: auto-detect the printer driver')
|
optdepends=('system-config-printer: auto-detect the printer driver')
|
||||||
makedepends=('cmake' 'automoc4')
|
makedepends=('extra-cmake-modules' 'kdoctools' 'python3' 'qt5-tools')
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
groups=("kde" "kdeadmin" "kde-uninstall")
|
groups=("kde" "kdeadmin" "kde-uninstall")
|
||||||
replaces=('kdeadmin-print-manager')
|
replaces=('kdeadmin-print-manager')
|
||||||
@ -20,14 +21,13 @@ options=('docs' '!header' 'debug' 'log')
|
|||||||
source=("$_mirror/${pkgname}-$_kdever.tar.xz")
|
source=("$_mirror/${pkgname}-$_kdever.tar.xz")
|
||||||
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
mkdir -p build
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
|
||||||
mkdir build
|
|
||||||
cd build
|
cd build
|
||||||
cmake .. \
|
cmake_kf5 ../${pkgname}-${pkgver}
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DKDE4_BUILD_TESTS=OFF \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user