wok-next annotate h8300-gdb-dev/receipt @ rev 6243

Up: nano to 2.2.5.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Sep 12 14:04:06 2010 +0000 (2010-09-12)
parents
children be13f25e790b
rev   line source
rcx@5986 1 # SliTaz package receipt."
rcx@5986 2
rcx@5986 3 PACKAGE="h8300-gdb-dev"
rcx@5986 4 VERSION="7.1"
rcx@5986 5 CATEGORY="development"
rcx@5986 6 SHORT_DESC="The GNU Project Debugger dev files targeting the H8/300."
rcx@5986 7 MAINTAINER="rcx@slitaz.org"
rcx@5986 8 DEPENDS="h8300-gdb"
rcx@5986 9 WANTED="h8300-gdb"
rcx@5986 10 SOURCE="gdb"
rcx@5986 11 WEB_SITE="http://www.gnu.org/software/gdb/"
rcx@5986 12
rcx@5986 13 genpkg_rules()
rcx@5986 14 {
rcx@5986 15 # tazwok does not define _pkg correctly when both WANTED and SOURCE are set
rcx@5986 16 _pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
rcx@5986 17
rcx@5986 18 mkdir -p $fs/usr
rcx@5986 19
rcx@5986 20 # Copying include dir if exists
rcx@5986 21 if [ -d "$_pkg/usr/include" ]; then
rcx@5986 22 cp -a $_pkg/usr/include $fs/usr
rcx@5986 23 fi
rcx@5986 24
rcx@5986 25 # Copying pkgconfig dir if exists
rcx@5986 26 if [ -d "$_pkg/usr/lib/pkgconfig" ]; then
rcx@5986 27 test -d $fs/usr/lib/ || mkdir -p $fs/usr/lib/
rcx@5986 28 cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
rcx@5986 29 fi
rcx@5986 30
rcx@5986 31 # Copying static h8300 libs only if exists
rcx@5986 32 if ( find $_pkg/usr/lib -name "*h8300-*.*a" > /dev/null ); then
rcx@5986 33 test -d $fs/usr/lib || mkdir -p $fs/usr/lib
rcx@5986 34 cp -a $_pkg/usr/lib/*h8300-*.*a $fs/usr/lib
rcx@5986 35 fi
rcx@5986 36 }