To dopiero pierwsza przymiarka do przeniesienia sweepera na KF5. Proponuję ostrożne używanie.
PKGBUILD
# Maintainer: pavbaranov
pkgname=sweeper-frameworks-git
pkgver=r326.7f868f5
pkgrel=1
pkgdesc="System Cleaner for Plasma 5"
arch=('i686' 'x86_64')
url="https://www.kde.org/applications/utilities/sweeper/"
license=('GPL')
depends=('kio' 'kdelibs4support' 'kdoctools' 'kcrash' 'ki18n' 'kconfig' 'kconfigwidgets')
makedepends=('kdoctools' 'git' 'extra-cmake-modules')
conflicts=('kdeutils-sweeper')
source=('git+https://anongit.kde.org/sweeper#branch=frameworks')
sha1sums=('SKIP')
install=($pkgname.install)
_gitname="sweeper"
pkgver() {
cd "${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
# _ver="$(cat CMakeLists.txt | grep -e SKANLITE_VERSION_STRING | head -n3 | cut -d '"' -f2)"
# echo "$(echo ${_ver} | tr ' ' .).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
rm -fr build
mkdir -p build
}
build() {
cd build
cmake "../${_gitname}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
make -C build DESTDIR="${pkgdir}" install
}
sweeper-frameworks-git.install
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}