summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3063ecb25348ff64f2af8debdafd6c6671bba148 (plain)
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
# Maintainer: √Čtienne Deparis <etienne@depar.is>
pkgname=ttf-b612-git
_pkgname=ttf-b612
pkgver=1.008.r3.g48ac6ba
pkgrel=1
pkgdesc="An highly legible open source font family designed and tested to be used on aircraft cockpit screens"
arch=("any")
url="http://b612-font.com/"
license=("EPL")
depends=(fontconfig xorg-font-utils )
makedepends=("git")
source=("git+https://github.com/polarsys/b612.git")
md5sums=("SKIP")
provides=("ttf-b612" "ttf-b612-mono")
conflicts=("ttf-b612" "ttf-b612-mono")

pkgver() {
    cd $srcdir/b612
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd $srcdir/b612
  install -d -m755 "$pkgdir/usr/share/licenses/$_pkgname"
  install -D -m644 edl-v10.html "$pkgdir/usr/share/licenses/$_pkgname/edl-v10.html"
  install -D -m644 EPL-2.0.html "$pkgdir/usr/share/licenses/$_pkgname/EPL-2.0.html"
  install -D -m644 OFL.txt "$pkgdir/usr/share/licenses/$_pkgname/OFL.txt"

  install -d -m755 "$pkgdir/usr/share/fonts/TTF"
  cd fonts/ttf
  find . -name "*.ttf" -exec install -D -m644 "{}" "$pkgdir/usr/share/fonts/TTF/{}" \;
}