wok-current annotate macchanger/receipt @ rev 24145
ventoy: set arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 10:14:59 2021 +0000 (2021-11-17) |
parents | 9b3e5f996086 |
children |
rev | line source |
---|---|
gokhlayeh@5876 | 1 # SliTaz package receipt. |
gokhlayeh@5876 | 2 |
gokhlayeh@5876 | 3 PACKAGE="macchanger" |
Hans-G?nter@21411 | 4 VERSION="1.7.0" |
gokhlayeh@5876 | 5 CATEGORY="network" |
Hans-G?nter@21411 | 6 SHORT_DESC="A small utility to change your MAC address." |
gokhlayeh@7034 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@15584 | 8 LICENSE="GPL2" |
pascal@21618 | 9 WEB_SITE="https://www.gnu.org/software/macchanger/" |
Hans-G?nter@21411 | 10 |
gokhlayeh@5876 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21411 | 12 WGET_URL="https://github.com/alobbs/$PACKAGE/releases/download/$VERSION/$TARBALL" |
gokhlayeh@5876 | 13 |
pascal@24055 | 14 current_version() |
pascal@24055 | 15 { |
pascal@24055 | 16 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 18 } |
pascal@24055 | 19 |
gokhlayeh@5876 | 20 # Rules to configure and make the package. |
gokhlayeh@5876 | 21 compile_rules() |
gokhlayeh@5876 | 22 { |
Hans-G?nter@21411 | 23 ./configure \ |
Hans-G?nter@21411 | 24 --prefix=/usr \ |
Hans-G?nter@21411 | 25 --infodir=/usr/share/info \ |
Hans-G?nter@21411 | 26 --mandir=/usr/share/man \ |
gokhlayeh@5876 | 27 $CONFIGURE_ARGS && |
Hans-G?nter@21411 | 28 make -j 1 && |
Hans-G?nter@21411 | 29 make DESTDIR=$DESTDIR install |
gokhlayeh@5876 | 30 } |
gokhlayeh@5876 | 31 |
gokhlayeh@5876 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@5876 | 33 genpkg_rules() |
gokhlayeh@5876 | 34 { |
gokhlayeh@5876 | 35 mkdir -p $fs/usr/share |
Hans-G?nter@21411 | 36 |
Hans-G?nter@21411 | 37 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21411 | 38 cp -a $install/usr/share/macchanger $fs/usr/share |
gokhlayeh@5876 | 39 } |