[arch-commits] Commit in (4 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Apr 13 07:12:59 UTC 2022
Date: Wednesday, April 13, 2022 @ 07:12:58
Author: grawlinson
Revision: 1186019
addpkg: python-darkdetect 0.5.1-2
Added:
python-darkdetect/
python-darkdetect/repos/
python-darkdetect/trunk/
python-darkdetect/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Added: python-darkdetect/trunk/PKGBUILD
===================================================================
--- python-darkdetect/trunk/PKGBUILD (rev 0)
+++ python-darkdetect/trunk/PKGBUILD 2022-04-13 07:12:58 UTC (rev 1186019)
@@ -0,0 +1,35 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Padraic Fanning <fanninpm AT miamioh DOT edu>
+
+pkgname=python-darkdetect
+pkgver=0.5.1
+pkgrel=2
+pkgdesc='Detect OS Dark Mode from Python'
+arch=('any')
+url='https://github.com/albertosottile/darkdetect'
+license=('BSD')
+depends=('python')
+makedepends=('git' 'python-setuptools')
+_commit='10a0c96b110c9005e966a977cd7513b9c1f4dbfb'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python setup.py build
+}
+
+package() {
+ cd "$pkgname"
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
More information about the arch-commits
mailing list