mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 14:54:37 +08:00
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
|
|
|
|
# Include global configuration
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
_origname=oxygen-icons
|
|
pkgname=('oxygen-icons' 'oxygen-icons-svg')
|
|
arch=('x86_64')
|
|
pkgver=${_kdever}
|
|
pkgrel=2
|
|
url="http://www.kde.org"
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
install=oxygen-icons.install
|
|
options=('log')
|
|
makedepends=('pkg-config' 'cmake' 'automoc4')
|
|
source=($_mirror/${_origname}-$_kdever.tar.xz)
|
|
#sha1sums=(`grep ${_origname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
|
sha1sums=('SKIP')
|
|
|
|
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
|
|
}
|
|
|
|
package_oxygen-icons() {
|
|
pkgdesc="Oxygen (Emot)Icons"
|
|
groups=("kde" "kde-minimal" "kde-uninstall")
|
|
|
|
cd $srcdir/$_origname-$pkgver
|
|
make DESTDIR=$pkgdir install || return 1
|
|
# move out some svg icons
|
|
mkdir -p $srcdir/svg
|
|
mv $pkgdir/usr/share/icons/oxygen/scalable $srcdir/svg
|
|
}
|
|
|
|
package_oxygen-icons-svg() {
|
|
pkgdesc="Oxygen (Emot)Icons - SVG Sources"
|
|
groups=("kde-uninstall")
|
|
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
|
|
}
|