Skip to content

Instantly share code, notes, and snippets.

@sebastianst
Created October 30, 2012 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastianst/3983814 to your computer and use it in GitHub Desktop.
Save sebastianst/3983814 to your computer and use it in GitHub Desktop.
PKGBUILD for ttf-google-webfonts from Arch Linux AUR to use git
# 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" \;
}
@sebastianst
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment