summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3325c2ca8160fd8a7240d13710488c7f403adc41 (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
31
32
# Maintainer: Yangtse Su <yangtsesu@gmail.com>

_gitbase=qr-filetransfer
pkgname="python-qr-filetransfer-git"
pkgver=r161.0ab883f
pkgrel=1
pkgdesc="Transfer files over WiFi between your computer and your smartphone from the terminal."
arch=('any')
url="https://github.com/sdushantha/qr-filetransfer"
license=('MIT')
depends=('python' 'python-netifaces' 'python-qrcode') 
makedepends=('git' 'python-setuptools')
provides=("python-qr-filetransfer")
conflicts=('qr-filetransfer')
source=("git+https://github.com/sdushantha/qr-filetransfer")
sha512sums=('SKIP')


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

build() {
	cd $_gitbase
	python setup.py build
}

package() {
	cd $_gitbase
	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}