wok view tint2/receipt @ rev 24383

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 06 11:51:57 2022 +0000 (2022-02-06)
parents 1a10044dd144
children fb22330086d8
line source
1 # SliTaz package receipt.
3 PACKAGE="tint2"
4 VERSION="0.12.2"
5 CATEGORY="misc"
6 SHORT_DESC="Lightweight panel/taskbar for Linux"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://gitlab.com/o9000/tint2"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/repository/archive.tar.gz?ref=$VERSION"
12 BRANCH="$VERSION"
13 CONFIG_FILES="/etc/xdg/tint2/tint2rc"
14 TAGS="desktop panel taskbar"
15 #HOST_ARCH="i486 arm"
17 DEPENDS="gtk+ imlib2 librsvg startup-notification"
18 BUILD_DEPENDS="cmake pango-dev imlib2-dev gtk+-dev startup-notification-dev \
19 librsvg-dev"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/repo*}/-/tags 2>/dev/null | \
24 sed '/tar.gz/!d;s|.*/tint2-v*\(.*\).tar.gz".*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cp -af $stuff/get_version.sh $src
31 export VERSION
33 mkdir build && cd build &&
34 cmake \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 $ARCH_ARGS .. &&
37 make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 # Use custom configured theme instead
45 cp -f $stuff/tint2rc $fs/etc/xdg/tint2/tint2rc
47 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
48 }