|
楼主 |
发表于 2005-3-27 09:04:51
|
显示全部楼层
[arch][PKGBUILD]cutedict
软件名:cutedict
版本:1.1-1
软件简介:stardict的KDE克隆
补丁:
编写:
提交日期:2005年3月27日
PKGBUILD
- # Maintainer : Kerberos Zhang <kerberos@minigui.org>
- pkgname=cutedict
- pkgver=1.1
- pkgrel=1
- pkgdesc="Cutedict is a clone of stardict for KDE"
- url="http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=109668"
- depends=('x-server' 'kdelibs>=3.3.2' 'arts>=1.3.0')
- source=("http://www.magiclinux.org/people/jackey/extra/cutedict/sources/cutedict-1.1.tar.bz2"
- "http://www.magiclinux.org/people/jackey/extra/cutedict/langdao-ce-gb.dic.bz2"
- "http://www.magiclinux.org/people/jackey/extra/cutedict/langdao-ec-gb.dic.bz2"
- "http://www.magiclinux.org/people/jackey/extra/cutedict/libdict-0.4-release.tar.bz2"
- "cutedict_kdepath.diff"
- "libdict.diff")
- build() {
- cd $startdir/src/libdict-0.4-release
- patch -p1 < ../libdict.diff || return 1
- cd $startdir/src/libdict-0.4-release/lib
- make || return 1
- mkdir -p $startdir/pkg/usr/lib
- make INSTALL_DIR=$startdir/pkg/usr/lib lib_install || return 1
- cd $startdir/src/$pkgname
- patch -p1 < ../cutedict_kdepath.diff || return 1
- ./configure --prefix=/opt/kde --with-extra-includes=$startdir/src/libdict-0.4-release/include --with-extra-libs=$startdir/src/libdict-0.4-release/lib || return 1
- make DESTDIR=$startdir/pkg install || return1
- mkdir -p $startdir/pkg/opt/kde/share/apps/dict || return 1
- cd $startdir/src
- mkdir -p $startdir/pkg/opt/kde/share/apps/cutedict/dic/
- cp langdao-ce-gb.dic langdao-ec-gb.dic $startdir/pkg/opt/kde/share/apps/cutedict/dic/
- }
复制代码
cutedict_kdepath.diff
- diff -ruNa cutedict.org/src/conf.cpp cutedict/src/conf.cpp
- --- cutedict.org/src/conf.cpp 2005-03-25 01:05:39.000000000 +0800
- +++ cutedict/src/conf.cpp 2005-03-25 01:06:18.000000000 +0800
- @@ -21,9 +21,15 @@
- Config::Config()
- {
- +#if 0
- configFile = "/usr/share/cutedict/cutedict.conf";
- dictDir = "/usr/share/cutedict/dic";
- wavDir = "/usr/share/WyabdcRealPeopleTTS";
- +#else
- + configFile = "/opt/kde/share/apps/cutedict/cutedict.conf";
- + dictDir = "/opt/kde/share/apps/cutedict/dic";
- + wavDir = "/usr/share/WyabdcRealPeopleTTS";
- +#endif
- }
- QString Config::GetWavDir()
复制代码
libdict.diff
- diff -ruNa libdict-0.4-release.org/lib/Makefile libdict-0.4-release/lib/Makefile
- --- libdict-0.4-release.org/lib/Makefile 2005-03-25 01:27:29.000000000 +0800
- +++ libdict-0.4-release/lib/Makefile 2005-03-25 01:28:00.000000000 +0800
- @@ -1,8 +1,8 @@
- -CC = c99
- +CC = gcc
- CP = cp -f -d
- LN = ln -f -s
- #CFLAGS = -pipe -Wall -pedantic -g -c
- -CFLAGS = -pipe -Wall -ggdb -c -I../include -fPIC
- +CFLAGS = -pipe -Wall -ggdb -c -I../include -fPIC -std=gnu9x
- LDFLAGS = -nostartfiles -shared -Wl,-soname=libdict.so.1
- OBJFILES = libdict.o dict_info.o file.o debug.o
- @@ -10,7 +10,6 @@
- LIB = libdict.so.1.0.4
- LIB_LINK1 = libdict.so
- LIB_LINK2 = libdict.so.1
- -INSTALL_DIR = /usr/local/lib/
- .PHONY : clean rebuild
- @@ -48,11 +47,6 @@
- lib_install: lib
- $(CP) $(LIB) $(LIB_LINK1) $(LIB_LINK2) $(INSTALL_DIR)
- - @grep -v $(INSTALL_DIR) /etc/ld.so.conf > tmp.conf
- - @cat tmp.conf > /etc/ld.so.conf
- - @echo $(INSTALL_DIR) >> /etc/ld.so.conf
- - @ldconfig
- - @rm tmp.conf -f
- #
复制代码 |
|