summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87d0c05a27983eb5a8b4a94fb2325db719563cfe (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
33
34
35
36
37
38
39
40
41
# Maintainer: Martchus <martchus@gmx.net>

# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
# you also find the URL of a binary repository.

pkgname=ubuntu-latex-fonts-git
pkgver=r71.1fe3a42
pkgrel=2
epoch=1
pkgdesc='Enables you to use the original Ubuntu Font Familiy with LaTeX'
arch=('any')
url='https://github.com/tzwenn/ubuntu-latex-fonts'
license=('custom')
depends=('texlive-core')
makedepends=('git')
optdepends=()
conflicts=('ubuntu-latex-fonts')
source=("$pkgname"::'git+https://github.com/tzwenn/ubuntu-latex-fonts.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
}

package() {
  cd "$srcdir/$pkgname"

  install -d "$pkgdir/usr/share/texmf-dist/fonts/tfm/ubuntu"
  install -d "$pkgdir/usr/share/texmf-dist/fonts/afm/ubuntu"
  make PREFIX="$pkgdir/usr/share/texmf-dist" install

  rm "$pkgdir/usr/share/texmf-dist/ls-R"

  install -d "$pkgdir/usr/share/licenses/$pkgname"
  install -m 0644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENCE"
}