wok-6.x view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="megatools"
4 VERSION="1.9.96"
5 CATEGORY="network"
6 SHORT_DESC="A collection of CLI programs for accessing Mega service."
7 MAINTAINER="Lucas Levrel <llev@slitaz.org>"
8 LICENSE="GPL2"
9 WEB_SITE="https://megatools.megous.com"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/builds/$TARBALL"
13 DEPENDS="glib libcurl openssl gmp"
14 BUILD_DEPENDS="glib-dev curl-dev openssl-dev gmp-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure $CONFIGURE_ARGS --disable-static \
27 && make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/* $fs
34 # upstream info: lib is deprecated; remove .h .pc .la
35 rm -r $fs/usr/share $fs/usr/lib/pkgconfig $fs/usr/lib/*a $fs/usr/include
36 }