You are not logged in.
Hi all,
I'm trying to build Envy Code R font package. Here is the file:
pkgname=ttf-envy-code-r
pkgver=preview7
_pkgver=PR7
pkgrel=1
pkgdesc="Free scalable coding font"
arch=('i686' 'x86_64')
url="http://damieng.com/blog/tag/envy-code-r"
license=('freeware')
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
install=envycoder.install
source=("http://download.damieng.com/fonts/original/EnvyCodeR-$_pkgver.zip")
md5sums=('0cce55205f1e8a109021b46c24741257')
build() {
cd $srcdir/Envy\ Code\ R\ $_pkgver
install -D -m644 Read\ Me.txt $pkgdir/usr/share/licenses/$pkgname/readme.txt
mkdir -p ${startdir}/pkg/usr/share/fonts/TTF
for i in *.ttf
do
mv "$i" $(echo $i | sed -e 's/ //g')
done
install -m644 *.ttf ${startdir}/pkg/usr/share/fonts/TTF/ #Skipping what's under VS
}
However, 'makepkg' gave this error: -> bsdtar -x -f EnvyCodeR-PR7.zip
Envy Code R PR7/Envy Code R Bold.ttf: Write request too large
Envy Code R PR7/Envy Code R Command Prompt.reg: Write request too large
Envy Code R PR7/Envy Code R Italic.ttf: Write request too large
Envy Code R PR7/Envy Code R.ttf: Write request too large
Envy Code R PR7/Read Me.txt: Write request too large
Envy Code R PR7/Visual Studio italics-as-bold/Envy Code R VS Italic-as-bold.ttf: Write request too large
Envy Code R PR7/Visual Studio italics-as-bold/Envy Code R VS.ttf: Write request too large
bsdtar: Error exit delayed from previous errors.
I tried bsdtar -x -f with normal zip file and zip file with spaced file name and found no problem. Can anybody explain? Thanks,
Offline
Certain zip files can't be handled by bsdtar; it is explained in more detail in some of the technical writeups of libarchive which processes all files as streams rather than random-access as the 'unzip' program does.
For zip files that are made in a slightly unorthodox fashion, one can do the following:
1. Add the zip file to the noextract=() PKGBUILD array
2. Add 'unzip' as a makedepend
3. Add as the first lines of your build function:
cd $srcdir
unzip <sourcefile>.zip
4. Continue as normal.
Offline
Works fine now. Why can't makepkg use unzip all the time?
Offline
Works fine now. Why can't makepkg use unzip all the time?
Because that would introduce an unneeded/unwanted dependency when most zip files don't need it.
Offline