wok-current view slim-theme-esperanza/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 | 34e801e0eb52 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="slim-theme-esperanza"
4 VERSION="20150602"
5 CATEGORY="customization"
6 SHORT_DESC="Esperanza - theme for SLiM"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://github.com/SliTaz-official/hackdorte-artwork/tree/master/slim/themes"
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=""
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/SliTaz-official/hackdorte-artwork/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/Esperanza
30 mkdir -p $theme
31 cp -a $src/* $theme
32 chown -R root:root $install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 }
41 post_install()
42 {
43 chroot "$1/" slim-theme -s Esperanza
44 }
46 pre_remove()
47 {
48 chroot "$1/" slim-theme -f Esperanza
49 }