wok-current view connman-ui/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | a78610b2eb47 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="connman-ui"
4 GITHASH="e4a8ddcca0870eb2ece5a7e3ea0296de9c86e5b2"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="network"
7 SHORT_DESC="A full-featured GTK based trayicon UI for ConnMan"
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/tbursztyka/connman-ui"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="https://github.com/tbursztyka/connman-ui/archive/$GITHASH.zip"
14 DEPENDS="connman dbus gtk+3"
15 BUILD_DEPENDS="wget autoconf automake libtool connman-dev gtk+3-dev dbus-dev \
16 libxml2-dev"
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 ./autogen.sh &&
29 ./configure $CONFIGURE_ARGS &&
30 # remove Exite menu
31 cp -a $stuff/right_menu.ui $src/data/ui &&
32 # change some icons
33 cp -a $stuff/icons/*.png $src/data/icons &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/* $fs
42 }