wok-next view mingw32-w32api/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mingw32-w32api"
4 SOURCE="w32api"
5 VERSION="3.13-mingw32"
6 CATEGORY="development"
7 SHORT_DESC="MinGW32 w32api"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="PublicDomain"
10 TARBALL="$SOURCE-$VERSION-src.tar.gz"
11 WEB_SITE="http://www.mingw.org/"
12 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
13 MINGW32_ID="i586-pc-mingw32"
15 COOKOPTS="force-arch" # different .a
17 BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c"
19 # Configuration only needs included if we're in the build/wok environment
20 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ]; then
21 . $WOK/mingw32-toolchain/stuff/mingw32.conf
22 fi
24 compile_rules() {
25 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ]; then
26 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
27 return 1
28 fi
30 find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$install/|"
31 rm -f -r $src/binutils
32 mkdir -p $SOURCE-$VERSION-build $install/usr/lib
33 cd $SOURCE-$VERSION-build
35 # NOTE: DESTDIR not handled correctly; have to fudge --prefix
36 $src/configure \
37 --prefix=/usr/$MINGW32_TARGET \
38 --host=$MINGW32_TARGET \
39 --build=$BUILD_HOST &&
40 make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" &&
41 make install
42 }
44 genpkg_rules() {
45 mkdir -p $fs$MINGW32_ROOT
46 cp -a $install/usr/lib $fs$MINGW32_ROOT
47 chown -R root.root $fs
48 }
50 post_install() {
51 MINGW32_ID="i586-pc-mingw32"
52 # Archives get stripped during packaging; need to run ranlib
53 chroot "$1/" find "/usr/$MINGW32_ID/lib/" -name *.a -exec $MINGW32_ID-ranlib {} \;
54 }