public
Last active

PKGBUILD for ttf-google-webfonts from Arch Linux AUR to use git

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
# Maintainer: Sarkasper <echo a2FzcGVyLm1lbnRlbkBnbXguY29tCg== | base64 -d>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Michalis Georgiou <mechmg93@gmail.comr>
# Contributor: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
# Contributor(git version): Sebastian Stammler <stammler.s@gmail.com>
 
pkgname=ttf-google-webfonts
#pkgver=121021
pkgrel=1
pkgdesc="Google Web Fonts catalogue. Git version."
arch=('any')
url="http://code.google.com/p/googlefontdirectory/issues/detail?id=2"
license=('various')
depends=('fontconfig' 'xorg-fonts-encodings')
makedepends=(git)
conflicts=('googlefontdirectory'
'jsmath-fonts'
'lohit-fonts'
'oldstand-font'
'otf-goudy'
'ttf-andika'
'ttf-anonymous-pro'
'ttf-cantarell'
'ttf-cardo'
'ttf-chromeos-fonts'
'ttf-droid'
'ttf-google-webfonts-hg'
'ttf-inconsolata'
'ttf-kimberly_geswein_print'
'ttf-nova'
'ttf-oldstandard'
'ttf-pt-mono'
'ttf-pt-sans'
'ttf-ptsans'
'ttf-roboto'
'ttf-sil-fonts'
'ttf-sortsmillgoudy'
'ttf-source-code-pro'
'ttf-source-sans-pro'
'ttf-ubuntu-font-family'
'ttf-vollkorn')
provides=("${conflicts[@]}")
install=font.install
 
#git vars
_gitroot="git://github.com/w0ng/googlefontdirectory.git"
_gitname="googlefontdirectory"
 
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
 
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone --depth=1 $_gitroot $_gitname
fi
 
msg "GIT checkout done or server timeout"
}
 
package() {
cd "$srcdir"
install -dm755 "$pkgdir/usr/share/fonts/TTF"
find . -type f -name \*.ttf -exec install -Dm644 '{}' \
"$pkgdir/usr/share/fonts/TTF" \;
}

I made an AUR Package named ttf-google-webfonts-git for this, see https://aur.archlinux.org/packages.php?ID=64176
Its PKGFILE is slightly modified (of course) compared to this one (which was supposed to be a drop-in replacement for the PKGBUILD file of the original AUR package) in the metadata to reflect the fact that it replaces the original package with a gitified one.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.