LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 8267|回复: 37

[arch][PKGBUILD]Winetools + arch下wine使用的研究话题

[复制链接]
发表于 2005-6-12 17:53:49 | 显示全部楼层 |阅读模式
软件名:Winetools
版本:wt212jo
软件简介:wine的配置和软件安装工具
提交日期:2005年06月12日

PKGBUILD代码:

  1. pkgname=winetools
  2. pkgver=212jo
  3. pkgrel=1
  4. pkgdesc="WineTools is a menu driven installer for installing about 90 Windows programs under the x86 (Athlon or Intel PC) processor architecture with the Linux operating system using Wine"
  5. url="http://www.von-thadden.de/Joachim/WineTools/"
  6. depends=(wine)
  7. install=
  8. source=(http://ds80-237-203-29.dedicated.hosteurope.de/wt/$pkgname-$pkgver.tar.gz)

  9. md5sums=()

  10. build() {
  11.   cd $startdir/src/$pkgname-$pkgver
  12.   mkdir -p ../../pkg/usr/local/winetools
  13.   cp -R * ../../pkg/usr/local/winetools
  14.   mkdir ../../pkg/usr/bin
  15.   cp wt212jo ../../pkg/usr/bin/wt2
  16.   cp wt212jo ../../pkg/usr/bin/winetools
  17.   cp findwine ../../pkg/usr/bin/findwine
  18.   cd po
  19.   for i in $( ls  *.po|cut -f1 -d.); do
  20.    mkdir -p ../../../pkg/usr/local/share/locale/$i/LC_MESSAGES
  21.    msgfmt $i.po -o ../../../pkg/usr/local/share/locale/$i/LC_MESSAGES/wt2.mo
  22.   done
  23. }
复制代码
 楼主| 发表于 2005-6-12 18:00:14 | 显示全部楼层
相关抓图

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-12 18:13:06 | 显示全部楼层

清晰字体配置

本人所使用的的wine对应版本:  Wine 20050419  ( 包:wine +winelib )

清晰字体修改办法(修改文件 ~/.wine/config )
----------------------------------------------------------------------------------------------------
;;"ClientSideAntiAliasWithRender" = "Y"   改为  "ClientSideAntiAliasWithRender" = "N"
----------------------------------------------------------------------------------------------------------
; List of all directories directly contain .AFM files
;;[afmdirs]
;;"1" = "/usr/share/ghostscript/fonts"
;;"2" = "/usr/share/a2ps/afm"
;;"3" = "/usr/share/enscript"
;;"4" = "/usr/X11R6/lib/X11/fonts/Type1"

改为

; List of all directories directly contain .AFM files
[afmdirs]
"1" = "/usr/share/ghostscript/fonts"
"2" = "/usr/share/a2ps/afm"
"3" = "/usr/share/enscript"
"4" = "/usr/X11R6/lib/X11/fonts/Type1"
"5" = "/usr/X11R6/lib/X11/fonts/TTF"

说明:使afmdirs的各设置项目生效,并加入一个当前系统存放wine所需要字体的目录路径,我这里的即上面的 "5" = "/usr/X11R6/lib/X11/fonts/TTF"
--------------------------------------------------------------------------------------------------
紧接上面[afmdirs]选项设置的后面在文件中加入

[fonts]
;Read the Fonts topic in the Wine User Guide before adding aliases
;See a couple of examples for russian users below
"Default" = "-misc-simsun-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-misc-simsun--"
"DefaultSansSerif" = "-misc-simsun-"

说明,应该是设置缺省的字体吧,如果系统没有simsun,改为自己的字体,例如AR PL New Sung

--------------------------------------------------------------------------------------------------

参考文章:参考文章   http://www.linuxfans.org/nuke/mo ... t=wine+%D7%D6%CC%E5


暂时还有二个没解决的问题:
(1)就是在某些输入框内输入汉字的时候字体乱码(例如IE中的linuxsir.cn中的用户名字输入框,如图所示)
(2)窗口的菜单栏字体过小

不知道有谁知道原因和解决方法?大家有空的一起研究研究!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2005-6-14 10:03:38 | 显示全部楼层
不错啊,good
回复 支持 反对

使用道具 举报

发表于 2005-6-14 11:35:32 | 显示全部楼层
good~~~狂赞
回复 支持 反对

使用道具 举报

发表于 2005-6-15 18:06:19 | 显示全部楼层
source=(http://ds80-237-203-29.dedicated.hosteurope.de/wt/$pkgname-$pkgver.tar.gz)好象有问题,不能makepkg。
[atai@arch tmp]$ makepkg
==> WARNING: Fakeroot is not installed.  Building as an unprivileged user
    will result in non-root ownership of the packaged files.
    Install the fakeroot package to correctly build as a non-root
    user.

==> Making package: winetools 212jo-1 (三  6月 15 18:05:38 CST 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Downloading winetools-212jo.tar.gz
--18:05:39--  http://ds80-237-203-29.dedicated ... etools-212jo.tar.gz
           => `winetools-212jo.tar.gz'
正在解析主机 ds80-237-203-29.dedicated.hosteurope.de... 80.237.203.29
Connecting to ds80-237-203-29.dedicated.hosteurope.de|80.237.203.29|:80... 已连 接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:197,877 (193K) [application/x-tar]

82% [=============================>       ] 163,448       71.81K/s

18:05:43 (71.70 KB/s) - Read error at byte 163448/197877 (Connection reset by peer). 重试中。

--18:05:44--  http://ds80-237-203-29.dedicated ... etools-212jo.tar.gz
  (尝试次数: 2) => `winetools-212jo.tar.gz'
Connecting to ds80-237-203-29.dedicated.hosteurope.de|80.237.203.29|:80... 已连 接。
已发出 HTTP 请求,正在等待回应... 读取文件头错误 (Connection reset by peer)。
重试中。

--18:05:46--  http://ds80-237-203-29.dedicated ... etools-212jo.tar.gz
  (尝试次数: 3) => `winetools-212jo.tar.gz'
Connecting to ds80-237-203-29.dedicated.hosteurope.de|80.237.203.29|:80... failed: Connection reset by peer.
正在解析主机 ds80-237-203-29.dedicated.hosteurope.de... 80.237.203.29
Connecting to ds80-237-203-29.dedicated.hosteurope.de|80.237.203.29|:80... 已连 接。
已发出 HTTP 请求,正在等待回应... 读取文件头错误 (Connection reset by peer)。
已放弃。

==> WARNING: MD5sums are missing or incomplete.  Cannot verify source integrity.==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf winetools-212jo.tar.gz

gzip: stdin: unexpected end of file
tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: 错误不可恢复:现在退出
==> ERROR: Failed to extract winetools-212jo.tar.gz
==> Aborting...
[atai@arch tmp]$
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-15 18:14:46 | 显示全部楼层
我在编译的时候也遇见过很多次这样下载错误的情况,不知道是否它的服务器有问题,还是我们这里和它的连接线路有问题!我最后是手动下载成功的,之后把它放到PKGBUILD的目录中去......呵呵!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-16 00:04:50 | 显示全部楼层
再提供一个PKGBUILD,我刚试用这个,也同样可以的!


  1. # Contributor: Shahar Weiss <sweiss4@gmx.net>

  2. pkgname=winetools
  3. pkgver=212jo
  4. pkgrel=2
  5. pkgdesc="WineTools is a menu driven installer for installing about 90 Windows programs with the Linux operating system using Wine."
  6. url="http://www.von-thadden.de/Joachim/WineTools"
  7. license="GPL"
  8. depends=('wine')
  9. source=(http://ds80-237-203-29.dedicated.hosteurope.de/wt/$pkgname-$pkgver.tar.gz)
  10. md5sums=()

  11. build() {
  12.   mkdir -p $startdir/pkg/usr/bin

  13.   cd $startdir/src/$pkgname-$pkgver

  14.   BASEDIR=$startdir/pkg/usr/local/winetools
  15.   DIR=$startdir/pkg/usr/local/share

  16.   # Installing WineTools to BASEDIR...

  17.   mkdir -p $BASEDIR
  18.   cp -R * $BASEDIR

  19.   # Installing translations...
  20.   cd "$BASEDIR/po"
  21.   for i in $( ls  *.po|cut -f1 -d.); do
  22.           mkdir -p $DIR/locale/$i/LC_MESSAGES
  23.           msgfmt $i.po -o $DIR/locale/$i/LC_MESSAGES/wt2.mo
  24.   done

  25.   cd $startdir/pkg/usr/bin
  26.   ln -sf ../local/winetools/wt$pkgver wt2
  27.   ln -sf ../local/winetools/wt$pkgver winetools
  28.   ln -sf ../local/winetools/findwine findwine
  29. }
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-6-16 01:09:31 | 显示全部楼层
野马,能不能把你编译的pkg文件共享一下,我makepkg生成了pkg包,但是不能用,用winetools启动后,在base setup那个页面里面不能用,不论按哪个都会又回到base setup页面。
邮箱:ataiAT21cn.net
谢谢了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-17 16:40:43 | 显示全部楼层
ak137,已经发送给你阿!

邮箱是ataiAT@21cn.net吧


信给退回来了,说没有这样的邮箱存在!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表