wok annotate tint2/receipt @ rev 25054
Up quarry (0.3.0.1), sunxi-tools (1.4.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 06 08:51:13 2022 +0000 (2022-06-06) |
parents | fb22330086d8 |
children | a5e183d53960 |
rev | line source |
---|---|
jozee@2766 | 1 # SliTaz package receipt. |
jozee@2766 | 2 |
jozee@2766 | 3 PACKAGE="tint2" |
al@18538 | 4 VERSION="0.12.2" |
jozee@2766 | 5 CATEGORY="misc" |
al@18538 | 6 SHORT_DESC="Lightweight panel/taskbar for Linux" |
jozee@2766 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@18538 | 9 WEB_SITE="https://gitlab.com/o9000/tint2" |
al@18538 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24975 | 11 WGET_URL="$WEB_SITE/-/archive/v$VERSION/tint2-v$VERSION.tar.gz" |
al@18538 | 12 BRANCH="$VERSION" |
rocky@3576 | 13 CONFIG_FILES="/etc/xdg/tint2/tint2rc" |
jozee@4973 | 14 TAGS="desktop panel taskbar" |
al@18538 | 15 #HOST_ARCH="i486 arm" |
jozee@2766 | 16 |
al@18538 | 17 DEPENDS="gtk+ imlib2 librsvg startup-notification" |
al@18538 | 18 BUILD_DEPENDS="cmake pango-dev imlib2-dev gtk+-dev startup-notification-dev \ |
al@18538 | 19 librsvg-dev" |
pankso@9854 | 20 |
pascal@24061 | 21 current_version() |
pascal@24061 | 22 { |
pascal@24975 | 23 wget -O - $WEB_SITE/-/tags 2>/dev/null | \ |
pascal@24384 | 24 sed '/tar.gz/!d;/data/d;s|.*/tint2-v*\(.*\).tar.gz".*|\1|' | sort -Vr | sed q |
pascal@24061 | 25 } |
pascal@24061 | 26 |
jozee@2766 | 27 # Rules to configure and make the package. |
jozee@2766 | 28 compile_rules() |
jozee@2766 | 29 { |
al@18538 | 30 cp -af $stuff/get_version.sh $src |
al@18538 | 31 export VERSION |
al@18538 | 32 |
al@18538 | 33 mkdir build && cd build && |
al@18538 | 34 cmake \ |
pankso@16169 | 35 -DCMAKE_INSTALL_PREFIX=/usr \ |
pankso@16169 | 36 $ARCH_ARGS .. && |
al@18538 | 37 make && make install |
jozee@2766 | 38 } |
jozee@2766 | 39 |
jozee@2766 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2766 | 41 genpkg_rules() |
jozee@2766 | 42 { |
al@18538 | 43 cp -a $install/* $fs |
al@18538 | 44 # Use custom configured theme instead |
al@18538 | 45 cp -f $stuff/tint2rc $fs/etc/xdg/tint2/tint2rc |
al@18538 | 46 |
al@18538 | 47 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man |
jozee@2766 | 48 } |