wok rev 1727

Add: gdb, gdb-dev
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Nov 19 23:52:52 2008 +0100 (2008-11-19)
parents c2bda74f53db
children b40e4601e9b5
files gdb-dev/receipt gdb/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gdb-dev/receipt	Wed Nov 19 23:52:52 2008 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt."
     1.5 +
     1.6 +PACKAGE="gdb-dev"
     1.7 +VERSION="6.8"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="The GNU Project Debugger. dev files."
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS="gdb"
    1.12 +WANTED="gdb"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.gnu.org/software/gdb/"
    1.15 +
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr
    1.19 +	
    1.20 +	# Copying include dir if existes
    1.21 +	if [ -d "$_pkg/usr/include" ]; then
    1.22 +		cp -a $_pkg/usr/include $fs/usr
    1.23 +	fi
    1.24 +	
    1.25 +	# Copying pkgconfig dir if existes
    1.26 +	if [ -d "$_pkg/usr/lib/pkgconfig" ]; then
    1.27 +		test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
    1.28 +		cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    1.29 +	fi
    1.30 +	
    1.31 +	# Copying static libs if existes
    1.32 +	if ( find $_pkg/usr/lib -name "*.*a" > /dev/null ); then
    1.33 +		test -d $fs/usr/lib || mkdir -p $fs/usr/lib
    1.34 +		cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.35 +	fi
    1.36 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gdb/receipt	Wed Nov 19 23:52:52 2008 +0100
     2.3 @@ -0,0 +1,28 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="gdb"
     2.7 +VERSION="6.8"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="The GNU Project Debugger."
    2.10 +MAINTAINER="erjo@slitaz.org"
    2.11 +DEPENDS="ncurses"
    2.12 +BUILD_DEPENDS="ncurses-dev"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14 +WEB_SITE="http://www.gnu.org/software/gdb/"
    2.15 +WGET_URL="http://ftp.gnu.org/gnu/gdb/$TARBALL"
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +	cd $src
    2.21 +	./configure --prefix=/usr $CONFIGURE_ARGS && \
    2.22 +	make && make DESTDIR=$PWD/_pkg install
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	mkdir -p $fs/usr
    2.29 +	cp -a $_pkg/usr/bin $fs/usr
    2.30 +}
    2.31 +