# From https://aur.archlinux.org/packages.php?ID=22483
# Contributor (Arch): TDY <tdy@gmx.com>
# Maintainer        : Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=ttf-beteckna
pkgver=0.4
pkgrel=1.2
pkgdesc="A geometric sans serif typeface inspired by the popular Futura"
arch=('any')
url="http://gnu.ethz.ch/linuks.mine.nu/beteckna/"
license=('GPL')
depends=('fontconfig' 'xorg-font-utils')
makedepends=('fontforge')
install=ttf.install
source=(http://gnu.ethz.ch/linuks.mine.nu/${pkgname/*-}/${pkgname/*-}-$pkgver.tar.gz)
md5sums=('01c12138e0f689f4acdacb105f4350a7')

package() {
  cd "$srcdir/${pkgname/*-}-$pkgver"
  install -dm755 "$pkgdir/usr/share/fonts/TTF"
  fontforge -script sfd2ttf.ff *.sfd &> /dev/null || return 1
  install -Dm644 *.ttf "$pkgdir/usr/share/fonts/TTF"
}