You are not logged in.

#1 2013-08-21 12:13:53

yoburtu
Member
Registered: 2006-06-07
Posts: 93

Problems with ttf-mac-fonts package from AUR

Hello,

I've problems with generate package ttf-mac-fonts:

$ sudo yaourt -S aur/ttf-mac-fonts
...
...
...
A    Macbuntu-10.04
A    Macbuntu-10.04/install.sh
A    Macbuntu-10.04/panel
A    Macbuntu-10.04/panel/panel.entries
A    Macbuntu-10.04/upgrade.sh
A    Macbuntu-10.04/compiz
A    Macbuntu-10.04/compiz/x64
A    Macbuntu-10.04/compiz/x64/original
A    Macbuntu-10.04/compiz/x64/original/libanimation.la
A    Macbuntu-10.04/compiz/x64/original/libanimation.a
A    Macbuntu-10.04/compiz/x64/original/libanimation.so
A    Macbuntu-10.04/compiz/x64/original/animation.xml
A    Macbuntu-10.04/compiz/x64/libanimation.a
A    Macbuntu-10.04/compiz/x64/libanimation.so
A    Macbuntu-10.04/compiz/x64/animation.xml
A    Macbuntu-10.04/compiz/x32
A    Macbuntu-10.04/compiz/x32/original
A    Macbuntu-10.04/compiz/x32/original/libanimation.la
A    Macbuntu-10.04/compiz/x32/original/libanimation.a
A    Macbuntu-10.04/compiz/x32/original/libanimation.so
A    Macbuntu-10.04/compiz/x32/original/animation.xml
A    Macbuntu-10.04/compiz/x32/libanimation.a
A    Macbuntu-10.04/compiz/x32/libanimation.so
A    Macbuntu-10.04/compiz/x32/animation.xml
A    Macbuntu-10.04/uninstall.sh
A    Macbuntu-10.04/readme
Checked out revision 134.
install: cannot stat 'gbk/*.ttf': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Makepkg was unable to build ttf-mac-fonts.
==> Restart building ttf-mac-fonts ? [y/N]
==> --------------------------------------
==> 

How can I solve this problem?.

Regards.

Offline

#2 2013-08-21 12:24:53

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,743
Website

Re: Problems with ttf-mac-fonts package from AUR

I just confirmed the error here - report it upstream, it looks like one of the tracked files was removed from the svn tree.

Also, you may want to suggest the aur maintainer update the PKGBUILD for makepkg 4.x.

Last edited by Trilby (2013-08-21 13:35:44)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2013-08-21 12:43:07

yoburtu
Member
Registered: 2006-06-07
Posts: 93

Re: Problems with ttf-mac-fonts package from AUR

I've reported this bug in upstream, and I've comment the problem to maintainer.

Regards.

Offline

#4 2013-08-21 13:00:59

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,743
Website

Re: Problems with ttf-mac-fonts package from AUR

Crap - sorry, I typed too quick, the upstream source if fine.  But as that PKGBUILD does some odd things, I missed the problem.   The simplest (but far from best) fix is to change the lines in the package function to the following:

	svn co https://macbuntu.svn.sourceforge.net/svnroot/macbuntu/Macbuntu/fonts/ ./
	install -d $pkgdir/usr/share/fonts/{TTF,Type1}
	install -m644 ./Macbuntu/fonts/gbk/*.ttf $pkgdir/usr/share/fonts/TTF
	install -m644 ./Macbuntu/fonts/mac/*.ttf $pkgdir/usr/share/fonts/TTF
	install -m644 ./Macbuntu/fonts/mac/*.pfb $pkgdir/usr/share/fonts/Type1

That is, add the proper paths to the install commands.

EDIT: or here is one that is at least a lot closer to the right way - though it's the first svn PKGBUILD I've worked on:

_svn=ttf-mac-fonts
pkgname=${_svn}-svn
pkgver=134 
pkgrel=1
pkgdesc="Mac fonts including Lucida Grande, Apple Garamond and other fonts from Apple"
arch=('any')
url="http://www.apple.com/safari/"
license=('custom')
depends=()
makedepends=('subversion')
conflicts=('macfonts' 'ttf-mac-fonts-svn')
source=(
	"${_svn}::svn+http://svn.code.sf.net/p/macbuntu/code/Macbuntu/fonts"
	"http://images.apple.com/legal/sla/docs/SafariWindows.pdf"
)
sha256sums=(
	'SKIP'
	'd1c9697ea430a3ddad6548c7b9c961c4b06f9da5a5ba1f1007fe998b3354df4a'
)
install='ttf-mac-fonts.install'

pkgver() {
	cd ${srcdir}/${_svn}
	svnversion | tr -d [A-z]
}

package() {
	cd ${srcdir}
	install -d $pkgdir/usr/share/licenses/${_svn}
	install -m644 SafariWindows.pdf $pkgdir/usr/share/licenses/${_svn}/
	cd ${srcdir}/${_svn}
	install -d $pkgdir/usr/share/fonts/{TTF,Type1}
	install -m644 gbk/*.ttf $pkgdir/usr/share/fonts/TTF
	install -m644 mac/*.ttf $pkgdir/usr/share/fonts/TTF
	install -m644 mac/*.pfb $pkgdir/usr/share/fonts/Type1
}

Last edited by Trilby (2013-08-21 13:35:55)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

Board footer

Powered by FluxBB