# HG changeset patch # User Eric Joseph-Alexandre # Date 1227135172 -3600 # Node ID 38eb7e9a9fefa82b73cdef58ebace62c40e2bdd1 # Parent c2bda74f53dbaa11e22cef52dd917f58b2967aa0 Add: gdb, gdb-dev diff -r c2bda74f53db -r 38eb7e9a9fef gdb-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gdb-dev/receipt Wed Nov 19 23:52:52 2008 +0100 @@ -0,0 +1,33 @@ +# SliTaz package receipt." + +PACKAGE="gdb-dev" +VERSION="6.8" +CATEGORY="development" +SHORT_DESC="The GNU Project Debugger. dev files." +MAINTAINER="erjo@slitaz.org" +DEPENDS="gdb" +WANTED="gdb" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/gdb/" + +genpkg_rules() +{ + mkdir -p $fs/usr + + # Copying include dir if existes + if [ -d "$_pkg/usr/include" ]; then + cp -a $_pkg/usr/include $fs/usr + fi + + # Copying pkgconfig dir if existes + if [ -d "$_pkg/usr/lib/pkgconfig" ]; then + test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/ + cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib + fi + + # Copying static libs if existes + if ( find $_pkg/usr/lib -name "*.*a" > /dev/null ); then + test -d $fs/usr/lib || mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib + fi +} diff -r c2bda74f53db -r 38eb7e9a9fef gdb/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gdb/receipt Wed Nov 19 23:52:52 2008 +0100 @@ -0,0 +1,28 @@ +# SliTaz package receipt. + +PACKAGE="gdb" +VERSION="6.8" +CATEGORY="development" +SHORT_DESC="The GNU Project Debugger." +MAINTAINER="erjo@slitaz.org" +DEPENDS="ncurses" +BUILD_DEPENDS="ncurses-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/gdb/" +WGET_URL="http://ftp.gnu.org/gnu/gdb/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr $CONFIGURE_ARGS && \ + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr +} +