wok-6.x annotate megatools/receipt @ rev 24727
cookutils: add repo-cooking (used by tank)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 15 10:59:31 2022 +0000 (2022-03-15) |
parents | 824e5ee3068c |
children | 24eba0b4978c |
rev | line source |
---|---|
llevrel@18833 | 1 # SliTaz package receipt. |
llevrel@18833 | 2 |
llevrel@18833 | 3 PACKAGE="megatools" |
llevrel@18833 | 4 VERSION="1.9.96" |
llevrel@18833 | 5 CATEGORY="network" |
llevrel@18833 | 6 SHORT_DESC="A collection of CLI programs for accessing Mega service." |
llevrel@18833 | 7 MAINTAINER="Lucas Levrel <llev@slitaz.org>" |
llevrel@18833 | 8 LICENSE="GPL2" |
llevrel@18833 | 9 WEB_SITE="https://megatools.megous.com" |
llevrel@18833 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
llevrel@18833 | 11 WGET_URL="$WEB_SITE/builds/$TARBALL" |
llevrel@18833 | 12 |
llevrel@18833 | 13 DEPENDS="glib libcurl openssl gmp" |
llevrel@18833 | 14 BUILD_DEPENDS="glib-dev curl-dev openssl-dev gmp-dev" |
llevrel@18833 | 15 |
pascal@24436 | 16 # What is the latest version available today? |
pascal@24436 | 17 current_version() |
pascal@24436 | 18 { |
pascal@24436 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24436 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24436 | 21 } |
pascal@24436 | 22 |
llevrel@18833 | 23 # Rules to configure and make the package. |
llevrel@18833 | 24 compile_rules() |
llevrel@18833 | 25 { |
llevrel@18835 | 26 ./configure $CONFIGURE_ARGS --disable-static \ |
llevrel@18835 | 27 && make && make install |
llevrel@18833 | 28 } |
llevrel@18833 | 29 |
llevrel@18833 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
llevrel@18833 | 31 genpkg_rules() |
llevrel@18833 | 32 { |
llevrel@18833 | 33 cp -a $install/* $fs |
llevrel@18835 | 34 # upstream info: lib is deprecated; remove .h .pc .la |
llevrel@18835 | 35 rm -r $fs/usr/share $fs/usr/lib/pkgconfig $fs/usr/lib/*a $fs/usr/include |
llevrel@18833 | 36 } |