summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-09-02 12:23:13 +1200
committercaltlgin2020-09-02 12:23:13 +1200
commit079cc21c689cdaa0c611a4261e6201d699d98176 (patch)
treeeb23ba8ca56adc177004f89dd21ec95016a47076
parentca93c6a80f00d4c1ce572bf793e266bb3f67d485 (diff)
downloadaur-079cc21c689cdaa0c611a4261e6201d699d98176.tar.gz
Move PKGBUILD to static releases as per VCS guidelines
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD41
2 files changed, 27 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0518782c988..ce958d22ae4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = yeecli
- pkgdesc = Yeelight CLI tool
- pkgver = r49.6e391b5
+ pkgdesc = Command-line utility for controlling the YeeLight RGB LED lightbulb
+ pkgver = 0.2.0
pkgrel = 1
url = https://gitlab.com/stavros/yeecli
- arch = i686
- arch = x86_64
+ arch = any
license = BSD
- makedepends = git
makedepends = python-setuptools
+ depends = python
+ depends = python-click
+ depends = python-ifaddr
depends = python-yeelight
- provides = yeecli
- source = git+https://gitlab.com/stavros/yeecli.git
- md5sums = SKIP
+ source = https://files.pythonhosted.org/packages/source/y/yeecli/yeecli-0.2.0.tar.gz
+ sha256sums = 2a534273ac7997f7e3991d22153e8d17efc87d2e9ee99e6bb4acb8097206d585
pkgname = yeecli
diff --git a/PKGBUILD b/PKGBUILD
index 162ed2fe7c8..a2076fb5f73 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,28 @@
-# Maintainer: tsipizic
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+# Contributor: tsipizic
-pkgname="yeecli"
-pkgver=r49.6e391b5
+pkgname='yeecli'
+pkgver=0.2.0
pkgrel=1
-pkgdesc="Yeelight CLI tool"
-arch=("i686" "x86_64")
-url="https://gitlab.com/stavros/yeecli"
-license=("BSD")
-depends=("python-yeelight" "python-click")
-makedepends=("git" "python-setuptools")
-provides=("yeecli")
-source=("git+https://gitlab.com/stavros/yeecli.git")
-md5sums=("SKIP")
-
-pkgver() {
- cd "$srcdir/$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" \
- "$(git rev-parse --short HEAD)"
-}
+pkgdesc='Command-line utility for controlling the YeeLight RGB LED lightbulb'
+arch=('any')
+url='https://gitlab.com/stavros/yeecli'
+license=('BSD')
+depends=('python' 'python-click' 'python-ifaddr' 'python-yeelight')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('2a534273ac7997f7e3991d22153e8d17efc87d2e9ee99e6bb4acb8097206d585')
build() {
- cd "$srcdir/$pkgname"
- python setup.py build
+ cd "${pkgname}-${pkgver}"
+ python setup.py build
}
package() {
- cd "$srcdir/$pkgname"
- python setup.py install --root="$pkgdir" --optimize=1
+ cd "${pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.rst'
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" 'LICENSE'
}
+# vim: ts=2 sw=2 et: