2013-10-24 03:45:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Copyright (C) 2013 Paweł Forysiuk <tuxator@o2.pl>
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# See the file COPYING for the full license text.
|
|
|
|
|
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
SRCDIR=$PWD
|
|
|
|
CONFIGURE_OPTIONS="-DUSE_ZEITGEIST=0 -DUSE_GTK3=1 -DCMAKE_VERBOSE_MAKEFILE=0 -DEXTRA_WARNINGS=1"
|
2013-10-24 03:45:02 +00:00
|
|
|
|
|
|
|
# 32-bit build
|
|
|
|
#mingw32-env
|
|
|
|
export MINGW_PREFIX="/usr/i686-w64-mingw32/sys-root/mingw"
|
|
|
|
eval `rpm --eval %{mingw32_env}`
|
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
rm -fr _mingw32
|
|
|
|
mkdir _mingw32 && cd _mingw32
|
|
|
|
mingw32-cmake -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX ${CONFIGURE_OPTIONS} $SRCDIR
|
|
|
|
make
|
|
|
|
sudo make install || exit
|
2013-10-24 03:45:02 +00:00
|
|
|
|
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
version=$(grep set\(VERSION $SRCDIR/CMakeLists.txt|head -n1|sed -e 's/^.*set(VERSION \([0-9.]*\)).*$/\1/')
|
2013-10-24 03:45:02 +00:00
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
rpmquery -qa mingw32* > $SRCDIR/midori-${version}-deps-i686.txt
|
|
|
|
rm -f $SRCDIR/midori-$version.sha1
|
2013-10-24 03:45:02 +00:00
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
MINGW_PREFIX=${MINGW_PREFIX} RELEASE=1 NSIS=1 $SRCDIR/win32/makedist/makedist.midori
|
|
|
|
mv -v midori-${version}.7z midori_${version}_32_.7z
|
|
|
|
mv -v Midori-${version}_setup.exe midori_${version}_32_.exe
|
|
|
|
|
|
|
|
if [ "$DO_64BIT" != "" ]; then
|
|
|
|
cd $SRCDIR
|
2013-10-24 03:45:02 +00:00
|
|
|
# 64-bit build
|
|
|
|
#mingw64-env
|
|
|
|
export MINGW_PREFIX="/usr/x86_64-w64-mingw32/sys-root/mingw"
|
|
|
|
eval `rpm --eval %{mingw64_env}`
|
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
rm -fr _mingw64
|
|
|
|
mkdir _mingw64 && cd _mingw64
|
|
|
|
mingw64-cmake -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX ${CONFIGURE_OPTIONS} $SRCDIR
|
|
|
|
make
|
|
|
|
sudo make install || exit
|
2013-10-24 03:45:02 +00:00
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
rpmquery -qa mingw64* > $SRCDIR/midori-${version}-deps-x86_64.txt
|
|
|
|
MINGW_PREFIX=${MINGW_PREFIX} RELEASE=1 sh $SRCDIR/win32/makedist/makedist.midori x86_64-portable
|
2013-10-24 03:45:02 +00:00
|
|
|
fi
|
|
|
|
|
2015-09-12 00:47:06 +00:00
|
|
|
cd $SRCDIR
|
|
|
|
|
2013-10-24 03:45:02 +00:00
|
|
|
echo
|
|
|
|
echo "============================="
|
|
|
|
echo "Midori win32 release details:"
|
|
|
|
echo "Download links:"
|
|
|
|
cat release_links.txt
|
|
|
|
echo "Checksums:"
|
|
|
|
cat midori-$version.sha1
|
|
|
|
echo "============================="
|
|
|
|
echo
|