summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3060048414b49a79b6e41fd45be862731d6229d9 (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
# Maintainer: Nikhil Singh <nik.singh710@gmail.com>
pkgname=getnf
pkgver=r81.0776636
pkgrel=1
pkgdesc="Simple utility to install nerd fonts in system."
arch=("any")
url="https://github.com/getnf/getnf"
license=('GPL3')
makedepends=("git")
depends=(
  curl
  fontconfig
)
source=("git+https://github.com/getnf/getnf.git")
md5sums=('SKIP')
provides=('getnf')
conflicts=('getnf')

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

package() {
  cd "$pkgname"
  install -Dm755 ./getnf "$pkgdir/usr/bin/$pkgname"
  install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
  install -Dm644 ./LICENSE.md $pkgdir/usr/share/licenses/$pkgname/LICENSE
}