desktop/oxygen-icons/PKGBUILD

61 lines
1.4 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: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-05-21 07:48:47 +08:00
# 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
pkgname=('oxygen-icons' 'oxygen-icons-svg')
2012-12-04 06:54:14 +08:00
arch=('x86_64')
2010-05-21 07:48:47 +08:00
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')
2012-12-04 06:54:14 +08:00
makedepends=('pkg-config' 'cmake' 'automoc4')
2010-05-21 07:48:47 +08:00
source=($_mirror/${_origname}-$_kdever.tar.xz)
md5sums=(`grep ${_origname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
2010-07-25 03:36:05 +08:00
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}
2012-11-17 16:09:50 +08:00
make
2010-05-21 07:48:47 +08:00
}
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
}