wok annotate libsde-utils-gtk/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | eeba7ab1dffe |
children | 92b662c0aa2d |
rev | line source |
---|---|
psychomaniak@19052 | 1 # SliTaz package receipt. |
psychomaniak@19052 | 2 |
psychomaniak@19052 | 3 PACKAGE="libsde-utils-gtk" |
psychomaniak@19052 | 4 VERSION="3c571f0" |
psychomaniak@19052 | 5 CATEGORY="development" |
psychomaniak@19052 | 6 SHORT_DESC="SDE GTK Utility Library" |
al@19170 | 7 MAINTAINER="al.bobylev@gmail.com" |
psychomaniak@19052 | 8 LICENSE="GPL" |
pascal@20674 | 9 WEB_SITE="https://github.com/sde-gui/libsde-utils" |
psychomaniak@19052 | 10 TARBALL="$PACKAGE-$VERSION.tar.xz" |
psychomaniak@19052 | 11 WGET_URL="http://git.make-linux.org/sde/$PACKAGE.git/snapshot/$TARBALL" |
psychomaniak@19052 | 12 |
psychomaniak@19052 | 13 DEPENDS="gtk+ libsde-utils" |
psychomaniak@19052 | 14 BUILD_DEPENDS="cmake gtk+-dev gdk-pixbuf-dev libsde-utils" |
psychomaniak@19052 | 15 |
pascal@24497 | 16 # What is the latest version available today? |
pascal@24497 | 17 current_version() |
pascal@24497 | 18 { |
pascal@24497 | 19 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24497 | 20 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
pascal@24497 | 21 } |
pascal@24497 | 22 |
psychomaniak@19052 | 23 # Rules to configure and make the package. |
psychomaniak@19052 | 24 compile_rules() |
psychomaniak@19052 | 25 { |
psychomaniak@19052 | 26 rm -rf $src/.git |
psychomaniak@19052 | 27 cmake -DCMAKE_INSTALL_PREFIX=/usr . && |
psychomaniak@19052 | 28 make && |
psychomaniak@19052 | 29 make install |
psychomaniak@19052 | 30 } |
psychomaniak@19052 | 31 |
psychomaniak@19052 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@19052 | 33 genpkg_rules() |
psychomaniak@19052 | 34 { |
psychomaniak@19052 | 35 mkdir -p $fs/usr/lib |
psychomaniak@19052 | 36 # cp -a $install/usr/lib/*.so* $fs/usr/lib |
psychomaniak@19052 | 37 # cp -a $install/usr/share $fs/usr |
psychomaniak@19052 | 38 cp -a $install/* $fs |
psychomaniak@19052 | 39 } |