wok-current annotate ctags/receipt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | 42e0165c64b9 |
children | 7dd01dedad38 |
rev | line source |
---|---|
rocky@5081 | 1 # SliTaz package receipt. |
rocky@5081 | 2 |
rocky@5081 | 3 PACKAGE="ctags" |
rocky@5081 | 4 VERSION="5.8" |
rocky@5081 | 5 CATEGORY="utilities" |
rocky@5081 | 6 SHORT_DESC="Generates an index file of language objects found in source files." |
rocky@5081 | 7 MAINTAINER="rocky@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
al@19315 | 9 WEB_SITE="http://ctags.sourceforge.net/" |
rocky@5081 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rocky@5081 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
rocky@5081 | 12 |
pascal@15579 | 13 BUILD_DEPENDS="" |
pascal@15579 | 14 |
pascal@24373 | 15 # What is the latest version available today? |
pascal@24373 | 16 current_version() |
pascal@24373 | 17 { |
pascal@24373 | 18 wget -O - https://sourceforge.net/projects/ctags/files/ctags/ 2>/dev/null | \ |
pascal@24373 | 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24373 | 20 sed '/scope="row/!d;s|.*/ctags/||;s|/.*||;q' |
pascal@24373 | 21 } |
pascal@24373 | 22 |
rocky@5081 | 23 # Rules to configure and make the package. |
rocky@5081 | 24 compile_rules() |
rocky@5081 | 25 { |
al@19315 | 26 ./configure \ |
al@19315 | 27 --prefix=/usr \ |
al@19315 | 28 $CONFIGURE_ARGS && |
al@19315 | 29 make && |
al@19315 | 30 make prefix=$DESTDIR/usr install |
al@19315 | 31 |
al@19315 | 32 cook_pick_manpages ctags.1 |
rocky@5081 | 33 } |
rocky@5081 | 34 |
rocky@5081 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
rocky@5081 | 36 genpkg_rules() |
rocky@5081 | 37 { |
al@19315 | 38 cook_copy_files ctags |
rocky@5081 | 39 } |