wok-current view libffcall/receipt @ rev 6111

tazbb: add check-receipt
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 04 13:54:44 2010 +0200 (2010-09-04)
parents 39f586a2b014
children 0e53525b8b2e
line source
1 # SliTaz package receipt.
3 PACKAGE="libffcall"
4 VERSION="20091209"
5 CATEGORY="development"
6 SHORT_DESC="Foreign function call libraries."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS=""
9 BUILD_DEPENDS="cvs"
10 WEB_SITE="http://www.gnu.org/software/libffcall/"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
16 if [ -f $TARBALL ]; then
17 tar xzf $TARBALL
18 else
19 # No official tarball - so we have to use cvs.
20 cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co ffcall || return 1
22 # $src = $PACKAGE-$VERSION
23 mv ffcall $PACKAGE-$VERSION 2>/dev/null
24 tar czf $TARBALL $PACKAGE-$VERSION
25 fi
26 cd $src
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $_pkg/usr/lib $fs/usr
40 cp -a $_pkg/usr/include $fs/usr
41 }