wok-current view lorcon/receipt @ rev 24540
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 16:54:57 2022 +0000 (2022-02-23) |
parents | cfc6ddf8de74 |
children | c15fedfb9582 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lorcon"
4 VERSION="163"
5 CATEGORY="network"
6 SHORT_DESC="A generic library for injecting 802.11 frames, capable of injection via multiple driver frameworks, without forcing modification of the application code."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://802.11ninja.net/lorcon/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="subversion|http://802.11ninja.net/svn/lorcon/trunk"
12 BRANCH="$VERSION"
14 BUILD_DEPENDS="subversion"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/kismetwireless/lorcon/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|\.||g;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 touch -d 197001010000 .depend
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }