Projet de distribution GNU/Linux
Auteurs: Martial
Date: dim mai 11 04:07:49 CEST 2003
Modif:
Dissection à titre d'exemple d'un nba et du Nbuild correspondant.
VERSION="1.6.4"
NODE="SYSTEM/LIB"
META_NODES=""
PRI_DL_URL="ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/popt-$VERSION.tar.gz"
CREATE_DIR="popt-$VERSION"
LICENSE=""
COPYRIGHTS=""
AUTHORS=""
META="nga:autoselect,oncd"
NBUILD_MAINT="martial <martial@nasgaia.org>"
PROJECT_URL=""
UNCOMPRESSED_SIZE=454k
GLIBC_VERSION=2.3.1
KERNEL_VERSION=2.4.20
GCC_VERSION=3.2.2
#=========#=========#=========#=========#=========
%SD[fr]
%LD[fr]
%LD[fr]
%LD[fr]
%LD[fr]
%LD[fr]
%LD[fr]
%SD[en]
%LD[en]
%LD[en]
%LD[en]
%LD[en]
%LD[en]
%LD[en]
#!/bin/bash
CWD=`pwd`
BWD=`basename $CWD`
do_preconfig () {
echo "Nothing to do."
return 0
}
do_config () {
export CFLAGS
./configure \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man
}
do_premake () {
echo "Nothing to do."
return 0
}
do_make () {
make
}
do_preinstall () {
( gzip popt.ps )
add_doc_files /usr/share/doc/$BWD CHANGES COPYING README popt.ps.gz
}
do_install () {
make DESTDIR=$INST_ROOT install
}
do_postinstall () {
strip_bins $INST_ROOT
strip_debug_libs $INST_ROOT
}
do_package () {
cd $NTMP &&
makenpkg2 $BWD
}
/usr
/usr/share
/usr/share/doc
/usr/share/doc/popt-1.6.4
/usr/share/doc/popt-1.6.4/CHANGES
/usr/share/doc/popt-1.6.4/COPYING
/usr/share/doc/popt-1.6.4/README
/usr/share/doc/popt-1.6.4/popt.ps.gz
/usr/share/locale
/usr/share/locale/cs
/usr/share/locale/cs/LC_MESSAGES
/usr/share/locale/cs/LC_MESSAGES/popt.mo
[ ... etc ... etc ... ]
/usr/share/locale/zh_CN.GB2312
/usr/share/locale/zh_CN.GB2312/LC_MESSAGES
/usr/share/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/popt.3
/usr/lib
/usr/lib/libpopt.so.0.0.0
/usr/lib/libpopt.la
/usr/lib/libpopt.a
/usr/include
/usr/include/popt.h
ld-linux.so.2(SYSTEM/glibc-2.3.1)
libc.so.6(SYSTEM/glibc-2.3.1)