desktop/kde-plasma-themes-caledonia/PKGBUILD

37 lines
1.5 KiB
Bash

pkgname=kde-plasma-themes-caledonia
pkgver=2.0
pkgrel=4
arch=('x86_64')
pkgdesc="Malcer's dark Caledonia Plasma theme with Chakra branding"
url=("http://caledonia.sourceforge.net/")
license='Creative-Commons-BY-ND'
groups=('caledonia' 'caledonia2.0')
screenshot="http://caledonia.sourceforge.net/img/slideshow/caledonia-04.png"
source=("http://sourceforge.net/projects/caledonia/files/Caledonia%20%28Plasma-KDE%20Theme%29/Caledonia-${pkgver}.tar.gz"
'branding.svgz')
md5sums=('c4167e82c98322bb578f06901edd47a2'
'cee6a3d546174a46c53fce413f57ba5c')
package() {
mkdir -p $pkgdir/usr/share/licenses/caledonia
install -Dm644 ${srcdir}/Caledonia/LICENSE.txt $pkgdir/usr/share/licenses/caledonia/LICENSE
chmod 644 -R ${pkgdir}/usr/share/licenses/caledonia/LICENSE
mkdir -p $pkgdir/usr/share/apps/desktoptheme/caledonia/
cd $srcdir/Caledonia
cp -Rv * $pkgdir/usr/share/apps/desktoptheme/caledonia/
# fix file rights
chmod 755 -R $pkgdir/usr/share/apps/desktoptheme/caledonia
# remove nasty files
find $pkgdir/ -name ".directory" -type f -exec rm -fr {} +
# replace with Chakra branding
rm ${pkgdir}/usr/share/apps/desktoptheme/caledonia/widgets/branding.svgz
install -Dm644 ${srcdir}/branding.svgz ${pkgdir}/usr/share/apps/desktoptheme/caledonia/widgets/branding.svgz
# duplicate one for plasma5
install -dm755 ${pkgdir}/usr/share/plasma/desktoptheme
cp -rv $pkgdir/usr/share/apps/desktoptheme/caledonia $pkgdir/usr/share/plasma/desktoptheme/caledonia
}