wok annotate softether/receipt @ rev 24562

updated fpm2 (0.79 -> 0.90)
author Hans-G?nter Theisgen
date Fri Feb 25 16:44:38 2022 +0100 (2022-02-25)
parents 85b490b0ae1a
children 0262035dc1e7
rev   line source
pascal@16786 1 # SliTaz package receipt.
pascal@16786 2
pascal@16786 3 PACKAGE="softether"
Hans-G?nter@21929 4 VERSION="4.29-9680-rtm"
Hans-G?nter@21929 5 RELEASE="2019.02.28"
pascal@16786 6 CATEGORY="network"
pascal@16786 7 SHORT_DESC="An Open-Source Free Cross-platform Multi-protocol VPN Program."
pascal@16786 8 MAINTAINER="pascal.bellard@slitaz.org"
Hans-G?nter@21929 9 LICENSE="Apache 2.0"
pascal@16786 10 WEB_SITE="https://www.softether.org/"
pascal@16786 11
Hans-G?nter@21929 12 TARBALL="$PACKAGE-src-v$VERSION.tar.gz"
Hans-G?nter@21929 13 WGET_URL="http://www.softether-download.com/files/softether/v$VERSION-$RELEASE-tree/Source_Code/$TARBALL"
Hans-G?nter@21929 14
Hans-G?nter@21929 15 DEPENDS="libcrypto libssl ncurses readline zlib"
Hans-G?nter@21929 16 BUILD_DEPENDS="ncurses-dev openssl-dev readline-dev"
pascal@16786 17
pascal@24462 18 # What is the latest version available today?
pascal@24462 19 current_version()
pascal@24462 20 {
pascal@24462 21 wget -O - https://github.com/SoftEtherVPN/SoftEtherVPN/releases 2>/dev/null | \
pascal@24462 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24462 23 }
pascal@24462 24
pascal@16786 25 # Rules to configure and make the package.
pascal@16786 26 compile_rules()
pascal@16786 27 {
pascal@16786 28 mkdir -p $DESTDIR/usr/bin
Hans-G?nter@21929 29 sed -i 's|uname -m|echo i486|' configure
pascal@16786 30 yes 1 | ./configure $CONFIGURE_ARGS &&
pascal@16786 31 sed -i "s|^INSTALL_.*DIR=|&$DESTDIR|" Makefile &&
pascal@16786 32 make &&
pascal@16786 33 make DESTDIR=$DESTDIR install &&
pascal@16786 34 sed -i "s|$DESTDIR||" $DESTDIR/usr/bin/*
pascal@16786 35 }
pascal@16786 36
pascal@16786 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16786 38 genpkg_rules()
pascal@16786 39 {
pascal@16786 40 mkdir -p $fs
pascal@16786 41 cp -a $install/usr $fs
pascal@16786 42 }