|
发表于 2004-10-16 21:55:01
|
显示全部楼层
xpdf3.0的PKGBUILD,打了中文标签补丁
- # Maintainer: tobias <tobias@archlinux.org>
- # Contributor Sarah Hay <sarahhay@mb.sympatico.ca>
- pkgname=xpdf
- pkgver=3.00
- pkgrel=4
- pkgdesc="Xpdf is a viewer for Portable Document Format (PDF) files."
- depends=('zlib' 'gcc>=3.4' 'lesstif' 't1lib')
- backup=(etc/xpdfrc)
- url="http://www.foolabs.com/xpdf/"
- source=([url]ftp://ftp.foolabs.com/pub/xpdf/[/url]$pkgname-$pkgver.tar.gz \
- http://61.153.200.30/lucida/linux-patch/files/xpdf-3.0-cjk-font.diff \
- http://61.153.200.30/lucida/linux-patch/files/xpdf-cjk-fix.diff)
- build() {
- cd $startdir/src/$pkgname-$pkgver
- patch -Np0 -i ../xpdf-3.0-cjk-font.diff
- patch -Np0 -i ../xpdf-cjk-fix.diff
- ./configure \
- --prefix=/usr \
- --enable-freetype2 \
- --sysconfdir=/etc \
- --with-freetype2-library=/usr/lib \
- --with-freetype2-includes=/usr/include/freetype2/freetype \
- --with-t1-library=/usr/lib \
- --with-t1-includes=/usr/include \
- --x-includes=/usr/X11R6/include \
- --with-Xm-library=/usr/X11R6/lib \
- --with-Xm-includes=/usr/X11R6/include
- # mess with configure and freetype2
- sed -i 's|/usr/include/freetype2/freetype|/usr/include/freetype2|' splash/Makefile
- for file in splash/SplashFTFont*h; do
- sed -i 's|\(#include <freetype/freetype.h>\)|#include <ft2build.h>\n#include FT_FREETYPE_H\n\1\n|' $file
- done
- make || return 1
- make DESTDIR=$startdir/pkg install
- }
复制代码
装上xpdf后,再pacman -S xpdf-chinese-simplified,然后按照论坛的贴子修改配置文件,就可以显示中文标签了。 |
|