summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22501fe18a472890bf217542279f677d55cb7620 (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
# Maintainer: Jose Riha <jose 1711 gmail com>

pkgname=mqrg-git
_gitname="microqrcode"
pkgver=20140617
pkgrel=1
pkgdesc="microqrcode generator draws QR codes into the text terminal"
url="https://github.com/trezor/microqrcode"
arch=('i686' 'x86_64')
license=('MIT')
source=(git+https://github.com/trezor/${_gitname}.git)
depends=('glibc')
makedepends=('git' 'check')

pkgver() {
  cd "$_gitname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${srcdir}/${_gitname}
  make || true
}

package() {
  cd ${srcdir}/$_gitname
  install -Dm755 ./test ${pkgdir}/usr/bin/${_gitname}
  install -Dm644 ./LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
md5sums=('SKIP')