diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000..c190067e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Mon Mar 14 05:13:53 UTC 2016 +pkgbase = pyhugh-git + pkgdesc = Python library for the Hue API, + pkgver = 1.e5c1c48 + pkgrel = 1 + url = https://github.com/mutantmonkey/pyhugh + arch = any + license = WTFPL + makedepends = git + depends = python + depends = python-requests>=2.4 + provides = pyhugh + conflicts = pyhugh + source = git+https://github.com/mutantmonkey/pyhugh.git + sha256sums = SKIP + +pkgname = pyhugh-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000..812a918a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: mutantmonkey +pkgname=pyhugh-git +_gitname=pyhugh +pkgver=1.e5c1c48 +pkgrel=1 +pkgdesc="Python library for the Hue API", +url="https://github.com/mutantmonkey/pyhugh" +arch=('any') +license=('WTFPL') +depends=('python' 'python-requests>=2.4') +makedepends=('git') +provides=('pyhugh') +conflicts=('pyhugh') +source=('git+https://github.com/mutantmonkey/pyhugh.git') +sha256sums=('SKIP') + +pkgver() { + cd $srcdir/$_gitname + echo $(git rev-list --count master).$(git rev-parse --short master) +} + +package() { + cd $srcdir/$_gitname + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: -- 2.51.2 From 65f45c9dd755edbb92d2141e55f32b84858561ab Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Mon, 7 Jun 2021 00:50:33 -0700 Subject: [PATCH 2/2] upgpkg: pyhugh-git 5.26b0542-4 --- .SRCINFO | 8 +++----- PKGBUILD | 8 ++++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index c190067e..3815d5f5 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,13 +1,12 @@ -# Generated by mksrcinfo v8 -# Mon Mar 14 05:13:53 UTC 2016 pkgbase = pyhugh-git pkgdesc = Python library for the Hue API, - pkgver = 1.e5c1c48 - pkgrel = 1 + pkgver = 5.26b0542 + pkgrel = 4 url = https://github.com/mutantmonkey/pyhugh arch = any license = WTFPL makedepends = git + makedepends = python-setuptools depends = python depends = python-requests>=2.4 provides = pyhugh @@ -16,4 +15,3 @@ pkgbase = pyhugh-git sha256sums = SKIP pkgname = pyhugh-git - diff --git a/PKGBUILD b/PKGBUILD index 812a918a..9120cf36 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,14 @@ -# Maintainer: mutantmonkey +# Maintainer: mutantmonkey pkgname=pyhugh-git _gitname=pyhugh -pkgver=1.e5c1c48 -pkgrel=1 +pkgver=5.26b0542 +pkgrel=4 pkgdesc="Python library for the Hue API", url="https://github.com/mutantmonkey/pyhugh" arch=('any') license=('WTFPL') depends=('python' 'python-requests>=2.4') -makedepends=('git') +makedepends=('git' 'python-setuptools') provides=('pyhugh') conflicts=('pyhugh') source=('git+https://github.com/mutantmonkey/pyhugh.git')