You are not logged in.

#1 2008-08-05 23:40:04

lang2
Member
Registered: 2006-02-10
Posts: 386

PKGBUILD problem with zip file

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

#2 2008-08-06 00:24:01

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: PKGBUILD problem with zip file

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

#3 2008-08-06 08:29:43

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: PKGBUILD problem with zip file

Works fine now. Why can't makepkg use unzip all the time?

Offline

#4 2008-08-06 20:22:28

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: PKGBUILD problem with zip file

lang2 wrote:

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

Board footer

Powered by FluxBB