wok annotate mariadb-test/receipt @ rev 15860

libmowgli: update genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 30 09:02:32 2014 +0000 (2014-01-30)
parents 62b209782f2d
children 2b545d56eedc
rev   line source
erjo@13054 1 # SliTaz package receipt.
erjo@13054 2
erjo@13054 3 PACKAGE="mariadb-test"
erjo@14808 4 VERSION="5.5.30"
erjo@13054 5 CATEGORY="misc"
erjo@13054 6 SHORT_DESC="SQL database system tests and benchs."
erjo@13054 7 MAINTAINER="erjo@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
erjo@13054 9 WEB_SITE="http://www.mysql.com/"
erjo@13054 10 WANTED="mariadb"
pascal@15001 11
erjo@13054 12 DEPENDS="mariadb perl"
erjo@13054 13
erjo@13054 14 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@13054 15 genpkg_rules()
erjo@13054 16 {
erjo@13054 17 mkdir -p $fs/usr/share
pascal@15001 18 cp -a $install/usr/mysql-test $fs/usr
pascal@15001 19 cp -a $install/usr/sql-bench $fs/usr
erjo@13054 20 find $fs/usr/mysql-test $fs/usr/sql-bench -type d -exec chmod 2777 {} \;
erjo@13054 21 while read file; do
erjo@13054 22 dir=$(dirname $file)
erjo@13054 23 [ -d $fs$dir ] || mkdir -p $fs$dir
pascal@15001 24 cp -a $install$file $fs$file
erjo@13054 25 done < $wanted_stuff/$PACKAGE.files-list
erjo@13054 26 mv $fs/usr/mysql-test $fs/usr/share/mysql-test
erjo@13054 27 mv $fs/usr/sql-bench $fs/usr/share/sql-bench
erjo@13054 28 }