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