wok-6.x annotate iw/receipt @ rev 1137

Fix post_install for subdir install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 24 12:27:06 2008 +0000 (2008-07-24)
parents e9c6229130e2
children faa4c6e9600b
rev   line source
pascal@1110 1 # SliTaz package receipt.
pascal@1110 2
pascal@1110 3 PACKAGE="iw"
pascal@1110 4 VERSION="0"
pascal@1110 5 CATEGORY="network"
pascal@1110 6 SHORT_DESC="Wireless configuration tool."
pascal@1110 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1110 8 TARBALL="$PACKAGE.tar.bz2"
pascal@1110 9 WEB_SITE="http://www.aircrack-ng.org/"
pascal@1110 10 WGET_URL="http://dl.aircrack-ng.org/$TARBALL"
pascal@1110 11 DEPENDS="libnl"
pascal@1110 12 BUILD_DEPENDS="libnl-dev"
pascal@1110 13
pascal@1110 14 # Rules to configure and make the package.
pascal@1110 15 compile_rules()
pascal@1110 16 {
pankso@1113 17 mkdir $PACKAGE-$VERSION
pankso@1113 18 mv *.c $src && mv *.h $src
pankso@1113 19 mv Makefile $src && mv COPYING $src
pascal@1110 20 cd $src
pascal@1110 21 make
pascal@1110 22 make DESTDIR=$PWD/_pkg install
pascal@1110 23 }
pascal@1110 24
pascal@1110 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1110 26 genpkg_rules()
pascal@1110 27 {
pascal@1110 28 cp -a $_pkg/sbin $fs
pascal@1110 29 }