wok annotate oxygen-icons/receipt @ rev 25616
Add emu2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 26 15:51:29 2023 +0000 (14 months ago) |
parents | 7c0170dd3ecc |
children |
rev | line source |
---|---|
al@16834 | 1 # SliTaz package receipt. |
al@16834 | 2 |
al@16834 | 3 PACKAGE="oxygen-icons" |
Hans-G?nter@25082 | 4 VERSION="5.95.0" |
al@19126 | 5 CATEGORY="customization" |
Hans-G?nter@23270 | 6 SHORT_DESC="Oxygen icon theme." |
al@16834 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16834 | 8 LICENSE="LGPL3" |
Hans-G?nter@23270 | 9 WEB_SITE="https://kde.org/" |
Hans-G?nter@23270 | 10 |
Hans-G?nter@23270 | 11 TARBALL="${PACKAGE}-${VERSION}.tar.xz" |
Hans-G?nter@23270 | 12 WGET_URL="https://download.kde.org/stable/frameworks/${VERSION%.*}/${PACKAGE}${VERSION%.*.*}-$VERSION.tar.xz" |
al@16834 | 13 |
pascal@24535 | 14 # What is the latest version available today? |
pascal@24535 | 15 current_version() |
pascal@24535 | 16 { |
pascal@24535 | 17 wget -O - https://invent.kde.org/frameworks/oxygen-icons5/-/tags 2>/dev/null | \ |
pascal@24535 | 18 sed '/item-title/!d;s|.*">v||;s|<.*||;q' |
pascal@24535 | 19 } |
pascal@24535 | 20 |
al@16834 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16834 | 22 genpkg_rules() |
al@16834 | 23 { |
al@16834 | 24 mkdir -p $fs/usr/share/icons/oxygen |
Hans-G?nter@23270 | 25 |
Hans-G?nter@23270 | 26 for size in 16 22 32 48 |
Hans-G?nter@23270 | 27 do |
Hans-G?nter@23270 | 28 cp -a $src/${size}x$size $fs/usr/share/icons/oxygen |
Hans-G?nter@23270 | 29 done |
Hans-G?nter@23270 | 30 cp -a $src/index.theme $fs/usr/share/icons/oxygen |
al@16834 | 31 } |
psychomaniak@17231 | 32 |
psychomaniak@17231 | 33 qtfix="usr/share/icons/hicolor/index.theme" |
psychomaniak@17231 | 34 |
psychomaniak@17231 | 35 post_install() |
psychomaniak@17231 | 36 { |
pascal@18730 | 37 sed '/Inherits=/s|=.*$|=oxygen|' -i "$1/$qtfix" |
psychomaniak@17231 | 38 } |
psychomaniak@17231 | 39 |
psychomaniak@17231 | 40 pre_remove() |
psychomaniak@17231 | 41 { |
pascal@18730 | 42 sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix" |
psychomaniak@17231 | 43 } |