# SliTaz package receipt. PACKAGE="httpfs2-fuse" VERSION="0.1.5" SOURCE="httpfs2" CATEGORY="system-tools" SHORT_DESC="HTTP/HTTPS Filesystem implemented with FUSE." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://httpfs.sourceforge.net/" WGET_URL="$SF_MIRROR/httpfs/$TARBALL" PROVIDE="httpfs-fuse" TAGS="filesystem" DEPENDS="gcc-lib-base fuse2 libgnutls" BUILD_DEPENDS="fuse2-dev gnutls-dev libgnutls pkg-config asciidoc docbook-xml docbook-xsl" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/httpfs/files/httpfs2/ 2>/dev/null | \ sed '/scope="row/!d;/tar/!d;/\/httpfs/!d;s|.*/httpfs2-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i "s/^package = .*/package = $SOURCE/" Makefile sed -i "s/^version = .*/version = $VERSION/" Makefile sed -i "s/^revision = .*/revision = 1/" Makefile sed -i "s/MAIN_LDFLAGS := /&-ldl -lpthread -lrt /" Makefile make -j 1 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $install/usr/share/doc $install/usr/share/man cp -a $src/httpfs2*mt $src/httpfs*[2l] $fs/usr/bin/ cp $src/*.1 $install/usr/share/man cp $src/*.txt $install/usr/share/doc }