desktop/oxygen-icons/PKGBUILD
2010-07-24 19:36:05 +00:00

97 lines
2.0 KiB
Bash

#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# original name (used for the source and pkgnames)
_origname=oxygen-icons
#
# package info
#
pkgbase=('oxygen-icons')
pkgname=('oxygen-icons'
'oxygen-icons-svg')
arch=('any')
pkgver=${_kdever}
pkgrel=1
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
install=oxygen-icons.install
makedepends=('pkgconfig' 'cmake' 'automoc4')
source=($_mirror/${_origname}-$_kdever.tar.bz2
http://chakra-project.org/source/icons/oxygencolors-addon.tar.gz)
md5sums=('313c72930520460480eaa00ed9119d37' # oxygen-icons-4.4.95.tar.bz2
'da971d7e2c862a6f77fb310a289f5529') # ../_sources/oxygencolors-addon.tar.gz
#
# build and install
#
build()
{
cd $srcdir/$_origname-$pkgver
patch -Np0 -i $startdir/install_svg_icons_too.patch || return 1
cmake . -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${_installprefix}
make || return 1
}
package_oxygen-icons()
{
pkgdesc="Oxygen (Emot)Icons + Addons"
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal")
conflicts=("kdmeod-${_origname}")
replaces=("kdemod-kdebase-runtime-icons")
cd $srcdir/$_origname-$pkgver
make DESTDIR=$pkgdir install || return 1
# move out some svg icons
mkdir $srcdir/svg
mv $pkgdir/usr/share/icons/oxygen/scalable $srcdir/svg
# install addons
cd ${srcdir}/oxygencolors-addon
cp -R * $pkgdir/usr/share/icons/oxygen
cd $pkgdir/usr/share/icons/oxygen
find . -name "*.png" -print|xargs chmod 644
}
package_oxygen-icons-svg()
{
pkgdesc="Oxygen (Emot)Icons - SVG Sources"
groups=("kde-uninstall")
conflicts=("kdemod-${_origname}-svg")
depends=("${_origname}")
mkdir -p $pkgdir/usr/share/icons/oxygen
mv $srcdir/svg/scalable $pkgdir/usr/share/icons/oxygen
rm -rf $pkgdir/usr/share/icons/oxygen/scalable/apps/clock.svgz
}