wok-next diff mingw32-w32api/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | da5256dcf31a |
children | e19ff076dc63 |
line diff
1.1 --- a/mingw32-w32api/receipt Tue Nov 07 11:30:40 2017 +0100 1.2 +++ b/mingw32-w32api/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -4,35 +4,32 @@ 1.4 SOURCE="w32api" 1.5 VERSION="3.13-mingw32" 1.6 CATEGORY="development" 1.7 -SHORT_DESC="MinGW32 w32api." 1.8 -MAINTAINER="rcx@zoominternet.net" 1.9 +SHORT_DESC="MinGW32 w32api" 1.10 +MAINTAINER="devel@slitaz.org" 1.11 LICENSE="PublicDomain" 1.12 TARBALL="$SOURCE-$VERSION-src.tar.gz" 1.13 WEB_SITE="http://www.mingw.org/" 1.14 WGET_URL="$SF_MIRROR/mingw/$TARBALL" 1.15 MINGW32_ID="i586-pc-mingw32" 1.16 1.17 -DEPENDS="" 1.18 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c" 1.19 1.20 # Configuration only needs included if we're in the build/wok environment 1.21 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 1.22 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ]; then 1.23 . $WOK/mingw32-toolchain/stuff/mingw32.conf 1.24 fi 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 - if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 1.30 +compile_rules() { 1.31 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ]; then 1.32 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 1.33 return 1 1.34 fi 1.35 1.36 - find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|" 1.37 + find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$install/|" 1.38 rm -f -r $src/binutils 1.39 - mkdir -p $SOURCE-$VERSION-build $DESTDIR/usr/lib 1.40 + mkdir -p $SOURCE-$VERSION-build $install/usr/lib 1.41 cd $SOURCE-$VERSION-build 1.42 - 1.43 + 1.44 # NOTE: DESTDIR not handled correctly; have to fudge --prefix 1.45 $src/configure \ 1.46 --prefix=/usr/$MINGW32_TARGET \ 1.47 @@ -42,24 +39,14 @@ 1.48 make install 1.49 } 1.50 1.51 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.52 -genpkg_rules() 1.53 -{ 1.54 +genpkg_rules() { 1.55 mkdir -p $fs$MINGW32_ROOT 1.56 cp -a $install/usr/lib $fs$MINGW32_ROOT 1.57 chown -R root.root $fs 1.58 } 1.59 1.60 -# Rules to setup after installation 1.61 -post_install() 1.62 -{ 1.63 +post_install() { 1.64 MINGW32_ID="i586-pc-mingw32" 1.65 # Archives get stripped during packaging; need to run ranlib 1.66 chroot "$1/" find "/usr/$MINGW32_ID/lib/" -name *.a -exec $MINGW32_ID-ranlib {} \; 1.67 } 1.68 - 1.69 -# Rules to clean the package 1.70 -clean_wok() 1.71 -{ 1.72 - rm -r $SOURCE-$VERSION-build 1.73 -}