desktop/kde-plasma-themes-caledonia/PKGBUILD
2014-03-09 17:02:28 +01:00

36 lines
1.5 KiB
Bash

pkgname=kde-plasma-themes-caledonia
pkgver=1.6.2
pkgrel=1
arch=('x86_64')
pkgdesc="Malcer's dark Caledonia Plasma theme with Chakra branding"
url=("http://caledonia.sourceforge.net/")
license='Creative-Commons-BY-ND'
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'
'shutdowndialog.svgz')
md5sums=('2af5f52c96afcec2dd3be3563b4c6c33'
'770cb602a01378a67235ecb093c25380'
'ff786108cc2f544dd6069d1efc2027ad')
package() {
mkdir -p $pkgdir/usr/share/licenses/caledonia
mv ${srcdir}/Caledonia/LICENSE $pkgdir/usr/share/licenses/caledonia
chmod 644 -R ${pkgdir}/usr/share/licenses/caledonia/LICENSE
mkdir -p $pkgdir/usr/share/apps/desktoptheme/caledonia/
cd $srcdir/Caledonia
cp -R * $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
rm ${pkgdir}/usr/share/apps/desktoptheme/caledonia/dialogs/shutdowndialog.svgz
install -Dm644 ${srcdir}/shutdowndialog.svgz ${pkgdir}/usr/share/apps/desktoptheme/caledonia/dialogs/shutdowndialog.svgz
}