diff options
author | Yangtse Su | 2020-03-26 21:09:33 +0800 |
---|---|---|
committer | Yangtse Su | 2020-03-26 21:09:33 +0800 |
commit | d6531edb09af6bee41a24dad48c4bb3b259f33e5 (patch) | |
tree | b741a790353772a1cd7b699f7b0c8db3979c6482 | |
download | aur-python-qr-filetransfer-git.tar.gz |
init release
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..22a801518e03 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-qr-filetransfer-git + pkgdesc = Transfer files over WiFi between your computer and your smartphone from the terminal. + pkgver = r161.0ab883f + pkgrel = 1 + url = https://github.com/sdushantha/qr-filetransfer + arch = any + license = MIT + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-netifaces + depends = python-qrcode + provides = python-qr-filetransfer + conflicts = qr-filetransfer + source = git+https://github.com/sdushantha/qr-filetransfer + sha512sums = SKIP + +pkgname = python-qr-filetransfer-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3325c2ca8160 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |