diff options
author | Wolfgang Popp | 2016-10-18 17:48:04 +0200 |
---|---|---|
committer | Wolfgang Popp | 2016-10-18 17:48:04 +0200 |
commit | 375f6365c1e5a4b0edfa2d44c29549900a62b136 (patch) | |
tree | ac4fbd9da93230ac0f272feb66e92b74f41f4330 | |
download | aur-375f6365c1e5a4b0edfa2d44c29549900a62b136.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | 99-antusb.rules | 2 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | setuptools.patch | 26 |
4 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..17e18304b953 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +# Generated by mksrcinfo v8 +# Tue Oct 18 15:43:36 UTC 2016 +pkgbase = python-ant-downloader-git + pkgdesc = Tools for download from garmin wireless (ANT) devices + pkgver = r473.28f5186 + pkgrel = 1 + url = https://github.com/braiden/python-ant-downloader + arch = any + license = BSD + makedepends = git + makedepends = python2-setuptools + depends = python2 + depends = python2-pyusb + depends = python2-lxml + depends = python2-pyserial + optdepends = python2-requests + source = python-ant-downloader-git::git+https://github.com/braiden/python-ant-downloader.git + source = 99-antusb.rules + source = setuptools.patch + sha256sums = SKIP + sha256sums = 556bc97347445719cdcf1e9de7686daedc13d9591f279265050bcdcdd57a8419 + sha256sums = 73db7a9b659494271a673dcd761d0af67e80d14fb6ed42c579a9f7a6ad54c3d5 + +pkgname = python-ant-downloader-git + diff --git a/99-antusb.rules b/99-antusb.rules new file mode 100644 index 000000000000..b878938bca23 --- /dev/null +++ b/99-antusb.rules @@ -0,0 +1,2 @@ +SUBSYSTEM=="usb", ATTR{idVendor}=="0fcf", ATTR{idProduct}=="1004", MODE:="666" +SUBSYSTEM=="usb", ATTR{idVendor}=="0fcf", ATTR{idProduct}=="1008", MODE:="666" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..09082fdeab21 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Wolfgang Popp <mail@wolfgang-popp.de> + +pkgname=python-ant-downloader-git +_pkgname=python-ant-downloader +pkgver=r473.28f5186 +pkgrel=1 +pkgdesc="Tools for download from garmin wireless (ANT) devices" +arch=('any') +url="https://github.com/braiden/python-ant-downloader" +license=('BSD') +depends=('python2' 'python2-pyusb' 'python2-lxml' 'python2-pyserial') +optdepends=('python2-requests') +makedepends=('git' 'python2-setuptools') +source=("$pkgname::git+https://github.com/braiden/python-ant-downloader.git" + "99-antusb.rules" + "setuptools.patch") +sha256sums=('SKIP' + '556bc97347445719cdcf1e9de7686daedc13d9591f279265050bcdcdd57a8419' + '73db7a9b659494271a673dcd761d0af67e80d14fb6ed42c579a9f7a6ad54c3d5') + +pkgver(){ + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$pkgname" + patch < $srcdir/setuptools.patch + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$_pkgname/LICENSE + install -Dm 644 "$srcdir/99-antusb.rules" $pkgdir/etc/udev/rules.d/99-antusb.rules +} + +# vim:set ts=2 sw=2 et: diff --git a/setuptools.patch b/setuptools.patch new file mode 100644 index 000000000000..7a72106b1dc0 --- /dev/null +++ b/setuptools.patch @@ -0,0 +1,26 @@ +diff --git a/setup.py b/setup.py +index c41cdbc..8b9dad9 100755 +--- a/setup.py ++++ b/setup.py +@@ -1,10 +1,10 @@ + #!/usr/bin/env python + +-from distutils.core import setup ++from setuptools import setup + + setup( + name = "python_ant_downloader", +- version = "git", ++ version = "2016.10.18", + author = "Braiden Kindt", + author_email = "braiden@braiden.org", + description = "Tools for download from wireless Garmin (ANT) GPS devices.", +@@ -17,8 +17,6 @@ setup( + 'console_scripts': ['ant-downloader = antd.main:downloader'] + }, + install_requires = [ +- "distribute", +- "argparse", + "lxml", + "pyserial", + "pyusb>=1.0.0a2", |