wok-6.x annotate xget/receipt @ rev 25481
created recipe for py3k-cffi
author | Hans-G?nter Theisgen |
---|---|
date | Mon Oct 17 07:42:01 2022 +0100 (2022-10-17) |
parents | ad86373a4a8c |
children |
rev | line source |
---|---|
pascal@11204 | 1 # SliTaz package receipt. |
pascal@11204 | 2 |
pascal@11204 | 3 PACKAGE="xget" |
pascal@11204 | 4 SOURCE="xcpu" |
pascal@11204 | 5 VERSION="1.2.3" |
pascal@11204 | 6 CATEGORY="network" |
pascal@11204 | 7 SHORT_DESC="Scalable file-transfer agent." |
pascal@11204 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 9 LICENSE="MIT GPL" |
pascal@11204 | 10 TARBALL="${SOURCE}1-$VERSION.tar.gz" |
pascal@25469 | 11 WEB_SITE="https://xcpu.sourceforge.net/xget" |
pascal@11204 | 12 WGET_URL="$SF_MIRROR/xcpu/$VERSION/$TARBALL" |
pascal@11204 | 13 |
pascal@11204 | 14 DEPENDS="" |
gokhlayeh@11469 | 15 BUILD_DEPENDS="openssl openssl-dev elfutils-dev" |
pascal@11204 | 16 |
pascal@24108 | 17 current_version() |
pascal@24108 | 18 { |
pascal@24108 | 19 wget -O - https://sourceforge.net/projects/$SOURCE/files/ 2>/dev/null | \ |
pascal@24108 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24108 | 21 sed '/files_name_h/!d;/XCPU/!d;s|.*XCPU/||;s|/.*||;q' |
pascal@24108 | 22 } |
pascal@24108 | 23 |
pascal@11204 | 24 # Rules to configure and make the package. |
pascal@11204 | 25 compile_rules() |
pascal@11204 | 26 { |
pascal@11204 | 27 cd $src |
pascal@11204 | 28 make -j 1 && |
pascal@11204 | 29 make INSTALLPREFIX=$DESTDIR/usr install |
pascal@11204 | 30 } |
pascal@11204 | 31 |
pascal@11204 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@11469 | 33 genpkg_rules() |
pascal@11204 | 34 { |
pascal@11204 | 35 mkdir -p $fs/usr/sbin |
pascal@15601 | 36 cp -a $install/usr/sbin/xget $fs/usr/sbin |
pascal@11204 | 37 } |