oxygen-icons5: prevent conflict

This commit is contained in:
cr6git 2017-07-31 10:20:21 +02:00
parent 0285878cc5
commit aa4e48855b

View file

@ -1,15 +1,26 @@
# Template file for 'oxygen-icons5'
pkgname=oxygen-icons5
version=5.36.0
revision=1
revision=2
noarch=yes
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools"
makedepends="qt5-devel"
short_desc="KDE Oxygen icon theme"
short_desc="KDE Oxygen(5) icon theme"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
homepage="https://projects.kde.org/projects/frameworks/oxygen-icons5"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=2fb5414909ee0b8ace97dec6ef1d056c6962ba992336e8c972319c1d1ef25910
post_extract() {
# To prevent any conflict with 'oxygen-icons' package.
sed -i -e "s/oxygen/oxygen5/g" CMakeLists.txt
sed -i -e "s/Oxygen/Oxygen5/g" index.theme
# Name[fr]=Oxygène
sed -i -e "s/Oxygène/Oxygène5/g" index.theme
# TODO: sed other languages in index.theme
}