deepin.deepin-icon-theme: 15.12.71 -> 2020.05.21

This commit is contained in:
José Romildo Malaquias 2020-05-25 17:04:39 -03:00
parent 3273a97f4a
commit 75771333d2
1 changed files with 22 additions and 15 deletions

View File

@ -3,19 +3,19 @@
, gtk3 , gtk3
, xcursorgen , xcursorgen
, papirus-icon-theme , papirus-icon-theme
, deepin
, hicolor-icon-theme , hicolor-icon-theme
, deepin
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "deepin-icon-theme"; pname = "deepin-icon-theme";
version = "15.12.71"; version = "2020.05.21";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxdeepin"; owner = "linuxdeepin";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "12rzzjp906np95ckbxrd4mb345lm198wz69kxy48f8q1zg78q8iw"; sha256 = "0b1s6kf0q804zbbghly981wzacy1spi8168shf3x8w95rqj6463p";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -30,22 +30,29 @@ stdenv.mkDerivation rec {
dontDropIconThemeCache = true; dontDropIconThemeCache = true;
postPatch = '' buildTargets = "all hicolor-links";
patchShebangs tools/hicolor.links
patchShebangs tools/display_unused_links.sh
patchShebangs cursors-src/cursors/bitmaps/make.sh
patchShebangs cursors-src/render-cursors.sh
# keep icon-theme.cache postPatch = ''
sed -i -e 's|\(-rm -f .*/icon-theme.cache\)|# \1|g' Makefile # fix: hicolor links should follow the deepin -> bloom naming change
# https://github.com/linuxdeepin/deepin-icon-theme/pull/24
substituteInPlace tools/hicolor.links --replace deepin bloom
substituteInPlace Sea/index.theme --replace Inherits=deepin Inherits=bloom
''; '';
buildTargets = "all hicolor-links"; installPhase = ''
installTargets = [ "install-icons" "install-cursors" ]; runHook preInstall
installFlags = [ "PREFIX=${placeholder "out"}" ];
postInstall = '' mkdir -p $out/share/icons
cp -a ./Sea ./usr/share/icons/hicolor "$out"/share/icons/ cp -vai bloom* Sea $out/share/icons
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
cp -vai usr/share/icons/hicolor $out/share/icons
runHook postInstall
''; '';
passthru.updateScript = deepin.updateScript { inherit pname version src; }; passthru.updateScript = deepin.updateScript { inherit pname version src; };