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