summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f6c60e494e5b678943863131272ee9bd1bfd385 (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: OriginCode <origincoder@yahoo.com>

pkgname=shadowsocks-libev-qrcode
pkgver=r22.5402aea
pkgrel=1
pkgdesc="Generate QR code from a shadowsocks-libev config file."
arch=('any')
url="https://github.com/OriginCode/shadowsocks-libev-qrcode"
license=('WTFPL')
depends=('python-qrcode')
makedepends=('git')
provides=('ss-qrcode')
source=('git+https://github.com/OriginCode/shadowsocks-libev-qrcode')
md5sums=('SKIP')

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

package() {
	install -d "${pkgdir}/usr/bin"
	cp "${srcdir}/${pkgname}/ss-qrcode" "${pkgdir}/usr/bin"
}