Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ttf-google-webfonts: update conflicts, use shallow copy, update install

fix wrong dir
  • Loading branch information...
commit 79e6e3f16f5b24699c88801d10fd59eb15829db2 1 parent 39689eb
@w0ng authored
Showing with 31 additions and 15 deletions.
  1. +31 −15 ttf-google-webfonts/PKGBUILD
View
46 ttf-google-webfonts/PKGBUILD
@@ -5,7 +5,7 @@
# Contributor: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
pkgname=ttf-google-webfonts
-pkgver=20120805
+pkgver=20121120
pkgrel=3
pkgdesc="Google Web Fonts catalog."
arch=('any')
@@ -13,12 +13,33 @@ url="http://code.google.com/p/googlefontdirectory"
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-inconsolata'
- 'ttf-kimberly_geswein_print' 'ttf-oldstandard' 'ttf-pt-sans'
- 'ttf-ptsans' 'ttf-roboto' 'ttf-sil-fonts' 'ttf-sortsmillgoudy'
- 'ttf-source-sans-pro' 'ttf-ubuntu-font-family' 'ttf-vollkorn')
+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
source=()
md5sums=()
@@ -34,19 +55,14 @@ build() {
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
- git clone "$_gitroot" "$_gitname"
+ git clone --depth=1 "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
- msg "Starting build..."
-
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
}
package() {
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname/fonts"
install -dm755 "$pkgdir/usr/share/fonts/TTF"
- find . -type f -name \*.ttf -exec install -Dm644 '{}' \
- "$pkgdir/usr/share/fonts/TTF" \;
+ install -Dm644 *.ttf "$pkgdir/usr/share/fonts/TTF"
}
Please sign in to comment.
Something went wrong with that request. Please try again.