wok view jsmin/receipt @ rev 25043
lxpanel: update web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 16:50:09 2022 +0000 (2022-06-01) |
parents | bdb702e08b62 |
children | a66f312c374b |
line source
1 # SliTaz package receipt.
3 PACKAGE="jsmin"
4 COMMIT="1bf6ce5f74a9f8752ac7f5d115b8d7ccb31cfe1b"
5 VERSION="${COMMIT:0:10}"
6 CATEGORY="development"
7 SHORT_DESC="JavaScript minification filter"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="other"
10 WEB_SITE="https://github.com/douglascrockford/JSMin"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz"
13 HOST_ARCH="i486 arm"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
22 sed '/commits_list_item/!d;s|.*commits/\(..........\).*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make jsmin
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/jsmin $fs/usr/bin
36 }