wok annotate slitaz-backgrounds/receipt @ rev 25049
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 04 20:10:27 2022 +0000 (2022-06-04) |
parents | 03ccd15b9fa1 |
children | d2b97b580e23 |
rev | line source |
---|---|
hackdorte@18329 | 1 # SliTaz package receipt. |
hackdorte@18329 | 2 |
hackdorte@18329 | 3 PACKAGE="slitaz-backgrounds" |
al@19001 | 4 COMMIT="8f027a0" # Better use https://github.com/hackdorte/slitaz-backgrounds/releases |
hackdorte@19000 | 5 VERSION="2.1" |
hackdorte@18329 | 6 CATEGORY="x-window" |
hackdorte@18980 | 7 SHORT_DESC="Additional backgrounds for Slitaz GNU/Linux." |
hackdorte@18329 | 8 MAINTAINER="hackdorte@sapo.pt" |
hackdorte@18980 | 9 LICENSE="PublicDomain" |
pascal@20693 | 10 WEB_SITE="https://github.com/SliTaz-official/hackdorte-artwork" |
hackdorte@18329 | 11 |
al@19001 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19001 | 13 WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz" |
hackdorte@18329 | 14 |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24055 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 18 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
hackdorte@18329 | 21 # Rules to configure and make the package. |
hackdorte@18329 | 22 compile_rules() |
hackdorte@18329 | 23 { |
hackdorte@18858 | 24 mkdir -p $install/usr/share/images |
hackdorte@18858 | 25 cp -a $src/* $install/usr/share/images |
hackdorte@18329 | 26 } |
hackdorte@18329 | 27 |
hackdorte@18329 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@18329 | 29 genpkg_rules() |
hackdorte@18329 | 30 { |
hackdorte@18329 | 31 cp -a $install/* $fs |
hackdorte@18329 | 32 } |
hackdorte@18980 | 33 |
hackdorte@18980 | 34 post_install() |
hackdorte@18980 | 35 { |
pascal@19065 | 36 rm -irf $1/usr/share/images/README.md |
hackdorte@18980 | 37 } |