summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52290290b12b5d3aae0ce1b5656d396317122f54 (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: ibrokemypie <ibrokemypie@bastardi.net>

pkgname=envypn-powerline-git
_name=envypn-powerline
pkgver=r13.9059e0a
pkgrel=2
pkgdesc="Readable bitmap font inspired by Envy Code R"
url="https://github.com/Sorixelle/envypn-powerline"
arch=('any')
license=('custom')
provides=('envypn-font')
depends=('fontconfig' 'xorg-fonts-encodings')
source=("git+https://github.com/Sorixelle/envypn-powerline")
sha256sums=('SKIP')

pkgver() {
  cd "${_name}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd "${srcdir}/${_name}"
  install -d "${pkgdir}/usr/share/fonts/${_name}"
  install -m644 *.bdf "${pkgdir}/usr/share/fonts/${_name}"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
  install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_name}/README.md"
}