wok-6.x annotate slim-theme-clean/receipt @ rev 25113
Use https://download.tuxfamily.org/ for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 25 14:36:45 2022 +0000 (2022-06-25) |
parents | b7f1bd1b9ac7 |
children |
rev | line source |
---|---|
al@18899 | 1 # SliTaz package receipt. |
al@18899 | 2 |
al@18899 | 3 PACKAGE="slim-theme-clean" |
al@18899 | 4 VERSION="20150602" |
al@19169 | 5 CATEGORY="customization" |
al@18899 | 6 SHORT_DESC="Clean - theme for SLiM" |
al@18899 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@18899 | 8 LICENSE="PublicDomain" |
pascal@20692 | 9 WEB_SITE="https://web.archive.org/web/20151101011855/http://desktopstylish.tumblr.com/post/120566561330/clean-slim-theme-download" |
al@19958 | 10 TAGS="hackdorte slim" |
al@19958 | 11 COOKOPTS="!pngquant" |
al@19958 | 12 |
al@18899 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@25113 | 14 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL" |
al@18899 | 15 |
al@18899 | 16 DEPENDS="slim" |
al@18899 | 17 BUILD_DEPENDS="imagemagick" |
al@18899 | 18 |
pascal@24713 | 19 # What is the latest version available today? |
pascal@24713 | 20 current_version() |
pascal@24713 | 21 { |
pascal@24713 | 22 wget -O - https://github.com/roqstr/blurry-clean/commits/master 2>/dev/null | \ |
pascal@24713 | 23 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d |
pascal@24713 | 24 } |
pascal@24713 | 25 |
al@18899 | 26 # Rules to configure and make the package. |
al@18899 | 27 compile_rules() |
al@18899 | 28 { |
al@19958 | 29 theme=$install/usr/share/slim/themes/Clean |
al@19958 | 30 mkdir -p $theme |
al@19958 | 31 cp -a $src/* $theme |
al@19958 | 32 cd $theme |
al@19958 | 33 convert background.png background.jpg |
al@19958 | 34 rm background.png |
al@19958 | 35 |
al@18899 | 36 chown -R root:root $install |
al@18899 | 37 } |
al@18899 | 38 |
al@18899 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18899 | 40 genpkg_rules() |
al@18899 | 41 { |
al@18899 | 42 cp -a $install/* $fs |
al@18899 | 43 } |
al@18899 | 44 |
al@18899 | 45 post_install() |
al@18899 | 46 { |
al@18899 | 47 chroot "$1/" slim-theme -s Clean |
al@18899 | 48 } |
al@18899 | 49 |
al@18899 | 50 pre_remove() |
al@18899 | 51 { |
al@18899 | 52 chroot "$1/" slim-theme -f Clean |
al@18899 | 53 } |