summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66921b2f22adf4c45a33d178aa574b78323cb013 (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
# Maintainer: Kewl <xrjy@nygb.rh.bet(rot13)>
# Contributor: Sabart Otto - Seberm <seberm[at]gmail[dot].com

pkgname=ttyqr-git
pkgver=r5.56f7658
pkgrel=5
pkgdesc="Draw QR codes straight into the terminal"
url="https://github.com/oskar456/ttyqr"
arch=('x86_64' 'armv7h' 'aarch64')
license=('GPL3')
depends=('qrencode')
makedepends=('git')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

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

build() {
  make -C "${pkgname}"
}

package() {
  cd "${pkgname}"
  install -Dm 0755 ttyqr "${pkgdir}/usr/bin/${pkgname%-git}"
}