wok-current view libdnet/receipt @ rev 12030

stella: move post_install code to genpkg_rules. It's far better to run a command once on the builder than on install on each of our computer.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 06 22:40:08 2012 +0100 (2012-03-06)
parents
children 6c3718ca17b6
line source
1 # SliTaz package receipt.
3 PACKAGE="libdnet"
4 VERSION="1.12"
5 CATEGORY="network"
6 SHORT_DESC="A simplified, portable interface to serveral low-level networking routines"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="python"
9 BUILD_DEPENDS="python python-dev"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WEB_SITE="http://code.google.com/p/libdnet/"
12 WGET_URL="http://libdnet.googlecode.com/files/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make && make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib
30 cp -a $_pkg/usr/sbin $fs/usr
31 cp -a $_pkg/usr/lib/libdnet $fs/usr/lib
32 cp -a $_pkg/usr/lib/*.1* $fs/usr/lib
33 }