core/oxygen-icons/PKGBUILD

74 lines
1.6 KiB
Bash
Raw Normal View History

2010-05-21 07:48:47 +08:00
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
2010-05-21 07:48:47 +08:00
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2011-07-23 02:02:15 +08:00
# original name (used for the source and pkgnames)
_origname=oxygen-icons
2010-05-21 07:48:47 +08:00
#
# package info
#
2011-07-23 02:02:15 +08:00
pkgname=('oxygen-icons' 'oxygen-icons-svg')
2010-05-21 07:48:47 +08:00
arch=('any')
pkgver=${_kdever}
pkgrel=1
2010-05-21 07:48:47 +08:00
pkgdesc="split package"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
2011-07-23 02:02:15 +08:00
2010-05-21 07:48:47 +08:00
install=oxygen-icons.install
2011-07-23 02:02:15 +08:00
options=('log')
2010-05-21 07:48:47 +08:00
makedepends=('pkgconfig' 'cmake' 'automoc4')
source=($_mirror/${_origname}-$_kdever.tar.xz)
2011-07-23 02:02:15 +08:00
md5sums=(`grep ${_origname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
2010-07-25 03:36:05 +08:00
2010-05-21 07:48:47 +08:00
#
# build and install
#
build()
{
2011-07-23 02:02:15 +08:00
cd $srcdir/$_origname-$pkgver
2010-05-21 07:48:47 +08:00
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()
{
2011-07-23 02:02:15 +08:00
pkgdesc="Oxygen (Emot)Icons"
groups=("kde" "kde-minimal" "kde-uninstall")
2010-05-21 07:48:47 +08:00
2011-07-23 02:02:15 +08:00
cd $srcdir/$_origname-$pkgver
2010-05-21 07:48:47 +08:00
make DESTDIR=$pkgdir install || return 1
# move out some svg icons
2010-07-30 04:45:25 +08:00
mkdir -p $srcdir/svg
2010-05-21 07:48:47 +08:00
mv $pkgdir/usr/share/icons/oxygen/scalable $srcdir/svg
}
package_oxygen-icons-svg()
{
2010-05-21 07:48:47 +08:00
pkgdesc="Oxygen (Emot)Icons - SVG Sources"
groups=("kde-uninstall")
2011-07-23 02:02:15 +08:00
depends=("${_origname}")
2010-05-21 07:48:47 +08:00
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
}