summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3980663d95f4d364eae2a37b0367c688a8127851 (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=duply_qr-git
pkgrel=1
pkgver=r4.cb6112b
pkgdesc='Backup Duply profile on a paper using QR code'
arch=('any')
url="https://github.com/jose1711/duply_qr"
license=('MIT')
depends=('duply' 'qrencode' 'enscript' 'ghostscript' 'evince' 'xpdf' 'zbar')
makedepends=('git')
md5sums=('SKIP')

source=("${pkgname}"::'git://github.com/jose1711/duply_qr.git')

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

package () {
  install -Dm755 "${srcdir}/${pkgname}/duply_qr.sh" "${pkgdir}/usr/bin/duply_qr.sh"
  install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}