[Frugalware-git] frugalware-current: winetools-0.9jo-2-i686 * added patch to find correct version of wine * closes FS#3739 * fixing source link
Devil505
devil505linux at gmail.com
Thu Aug 12 11:26:51 CEST 2010
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6af5c22232a2e7a3526ae5d64319afcfb8df7783
commit 6af5c22232a2e7a3526ae5d64319afcfb8df7783
Author: Devil505 <devil505linux at gmail.com>
Date: Thu Aug 12 11:26:17 2010 +0200
winetools-0.9jo-2-i686
* added patch to find correct version of wine
* closes FS#3739
* fixing source link
diff --git a/source/xapps-extra/winetools/FrugalBuild b/source/xapps-extra/winetools/FrugalBuild
index 19b5638..86046b4 100644
--- a/source/xapps-extra/winetools/FrugalBuild
+++ b/source/xapps-extra/winetools/FrugalBuild
@@ -3,20 +3,21 @@
pkgname=winetools
pkgver=0.9jo
-pkgrel=1
+pkgrel=2
pkgdesc="A menu driven installer for installing about 90 Windows programs"
url="http://www.von-thadden.de/Joachim/WineTools/"
rodepends=('wine' 'xdialog')
groups=('xapps-extra')
archs=('i686' '!x86_64')
up2date="lynx -dump $url |grep actual|sed 's/.*n \(.*\) wo.*/\1/;s/wt//'"
-source=(http://ds80-237-203-29.dedicated.hosteurope.de/wt/$pkgname-$pkgver.tar.gz)
-sha1sums=('f085f07f422c5dfa385290e2d100c1be4a7b5c5d')
+source=(http://www.sfr-fresh.com/linux/misc/$pkgname-$pkgver-III.tar.gz findwine.patch)
+sha1sums=('e8d510139cce7267d6040f77f9e73b2cbd84a65f' \
+ 'cc96892fc63efd166c4f86871d72f54287e7bdf5')
force="y"
build()
{
- Fcd
+ Fcd "$pkgname-$pkgver-III"
Fmkdir /usr/bin
Fsed 'BASEDIR="/usr/local/winetools"' 'BASEDIR="/usr/share/winetools"' \
wt$pkgver findwine
@@ -26,6 +27,7 @@ build()
'TEXTDOMAINDIR=/usr/share/locale"' findwine
Fmkdir /usr/share/winetools
+ Fpatchall
cp -R * $Fdestdir/usr/share/winetools/
cd $Fdestdir/usr/share/winetools/po
diff --git a/source/xapps-extra/winetools/findwine.patch b/source/xapps-extra/winetools/findwine.patch
new file mode 100644
index 0000000..300cdad
--- /dev/null
+++ b/source/xapps-extra/winetools/findwine.patch
@@ -0,0 +1,18 @@
+--- findwine.old 2007-10-11 07:56:10.000000000 -0400
++++ findwine 2007-10-11 07:56:32.000000000 -0400
+@@ -102,13 +102,13 @@
+ mkdir /tmp/wine-$$
+ touch /tmp/wine-$$/.no_debug_window_flag
+ touch /tmp/wine-$$/.no_prelaunch_window_flag
+- WINEVER="`WINEPREFIX=/tmp/wine-$$ wine --version 2>&1 | grep "Wine [0-9]" | sed -e \"s/Wine //\"`"
++ WINEVER="`WINEPREFIX=/tmp/wine-$$ wine --version 2>&1 | grep "wine-[0-9]" | sed -e \"s/wine-//\"`"
+ rm -Rf /tmp/wine-$$
+ fi
+ else
+ # find out the Wine version if WINEVER is not set in environment
+ echo -n "`eval_gettext "detecting Wine version... "`"
+- [ "$WINEVER" = "" ] && WINEVER="`wine --version 2>&1 | grep "Wine [0-9]" | sed -e \"s/Wine //\"`"
++ [ "$WINEVER" = "" ] && WINEVER="`wine --version 2>&1 | grep "wine-[0-9]" | sed -e \"s/wine-//\"`"
+
+ echo "done."
+
More information about the Frugalware-git
mailing list