summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c81258506dc9020d03ffe41179aee230403de8a (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
# Maintainer: Your Name <youremail@domain.com>
pkgname=ttf-bqn386-git
pkgver=r12.0f89cae
pkgrel=2
pkgdesc='An APL and BQN font extending on APL386.'
arch=('any')
url='https://dzaima.github.io/BQN386/'
license=('custom')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/dzaima/BQN386.git")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm644 'BQN386.ttf' -t "${pkgdir}/usr/share/fonts/TTF"
  install -Dm644 'index.html' -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}