wok annotate wireguard-tools/receipt @ rev 25520
created recipes for libluv and libluv-dev 1.44.2.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:44:32 2023 +0100 (20 months ago) |
parents | 511d41fb7f76 |
children |
rev | line source |
---|---|
pascal@25437 | 1 # SliTaz package receipt. |
pascal@25437 | 2 |
pascal@25437 | 3 PACKAGE="wireguard-tools" |
pascal@25437 | 4 VERSION="1.0.20210914" |
pascal@25437 | 5 CATEGORY="base-system" |
pascal@25437 | 6 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@25437 | 7 LICENSE="GPL2" |
pascal@25437 | 8 SHORT_DESC="Tools for configuring WireGuard VPN." |
pascal@25437 | 9 WEB_SITE="https://www.wireguard.com/" |
pascal@25437 | 10 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@25437 | 11 WGET_URL="https://git.zx2c4.com/$PACKAGE/snapshot/$TARBALL" |
pascal@25437 | 12 |
pascal@25437 | 13 DEPENDS="" |
pascal@25437 | 14 BUILD_DEPENDS="" |
pascal@25437 | 15 |
pascal@25445 | 16 # What is the latest version available today? |
pascal@25445 | 17 current_version() |
pascal@25445 | 18 { |
pascal@25445 | 19 wget -O - https://git.zx2c4.com/wireguard-tools/ 2>/dev/null | \ |
pascal@25445 | 20 sed '/tag\/.h=/!d;s|.*h=v||;s|.>.*||;q' |
pascal@25445 | 21 } |
pascal@25445 | 22 |
pascal@25437 | 23 # Rules to configure and make the package. |
pascal@25437 | 24 compile_rules() |
pascal@25437 | 25 { |
pascal@25437 | 26 cd src && |
pascal@25437 | 27 make && |
pascal@25437 | 28 make DESTDIR=$DESTDIR install |
pascal@25437 | 29 } |
pascal@25437 | 30 |
pascal@25437 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@25437 | 32 genpkg_rules() |
pascal@25437 | 33 { |
pascal@25437 | 34 mkdir $fs/usr |
pascal@25437 | 35 cp -a $install/usr/bin $fs/usr |
pascal@25437 | 36 } |