mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
29 lines
978 B
Bash
29 lines
978 B
Bash
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
|
|
# Maintainer: Eric Belanger <eric@archlinux.org>
|
|
# Contributor: Tobias Kieslich <tobias@justdreams.de>
|
|
|
|
pkgname=xpdf-cyrillic
|
|
pkgver=20030628
|
|
pkgrel=2
|
|
pkgdesc="Adds support for Cyrillic fonts to xpdf"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.foolabs.com/xpdf/"
|
|
license=('GPL2')
|
|
depends=('xpdf')
|
|
install=$pkgname.install
|
|
source=(ftp://ftp.foolabs.com/pub/xpdf/$pkgname.tar.gz)
|
|
md5sums=('7b22f31289ce0812d2ec77014e7b0cdf')
|
|
|
|
build() {
|
|
_xpdfextdir=$startdir/pkg/usr/share/xpdf
|
|
cd $startdir/src/$pkgname
|
|
# copy files to the desired dir, we set /usr/share/xpdf
|
|
mkdir -p $_xpdfextdir
|
|
cp -R * $_xpdfextdir
|
|
rm -f $_xpdfextdir/README $_xpdfextdir/add-to-xpdfrc
|
|
# relocate language specific files
|
|
sed -i 's|/usr/local/share/xpdf/cyrillic|/usr/share/xpdf|' add-to-xpdfrc
|
|
# X-Fonts are no longer supported by xpdf
|
|
sed -i 's|^displayCIDFontX.*$||' add-to-xpdfrc
|
|
install -Dm 644 add-to-xpdfrc $startdir/pkg/etc/xpdf/$pkgname
|
|
}
|