wok-stable annotate mysql-test/receipt @ rev 5784
Speedup some builds
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 10 18:02:56 2010 +0200 (2010-07-10) |
parents | 63cc70f33130 |
children | 0d38e6b0c9a7 |
rev | line source |
---|---|
pascal@1140 | 1 # SliTaz package receipt. |
pascal@1140 | 2 |
pascal@1140 | 3 PACKAGE="mysql-test" |
pankso@4171 | 4 VERSION="5.1.38" |
pascal@1423 | 5 CATEGORY="misc" |
pascal@1140 | 6 SHORT_DESC="SQL database system tests and benchs." |
pascal@1140 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1140 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1140 | 9 WEB_SITE="http://www.mysql.com/" |
pascal@1140 | 10 WANTED="mysql" |
pascal@1140 | 11 DEPENDS="mysql perl" |
pascal@1140 | 12 |
pascal@1140 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1140 | 14 genpkg_rules() |
pascal@1140 | 15 { |
pascal@4958 | 16 mkdir -p $fs/usr/share |
pankso@3359 | 17 cp -a $_pkg/usr/mysql-test $fs/usr |
pankso@3359 | 18 cp -a $_pkg/usr/sql-bench $fs/usr |
pascal@1140 | 19 find $fs/usr/mysql-test $fs/usr/sql-bench -type d -exec chmod 2777 {} \; |
pascal@1140 | 20 while read file; do |
pascal@1140 | 21 dir=$(dirname $file) |
pascal@1140 | 22 [ -d $fs$dir ] || mkdir -p $fs$dir |
pascal@1140 | 23 cp -a $_pkg$file $fs$file |
pankso@3359 | 24 done < $WOK/$WANTED/stuff/$PACKAGE.files-list |
pascal@4958 | 25 mv $fs/usr/mysql-test $fs/usr/share/mysql-test |
pascal@4958 | 26 mv $fs/usr/sql-bench $fs/usr/share/sql-bench |
pascal@1140 | 27 } |