[arch-commits] Commit in python-darkdetect/repos (2 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Apr 13 07:14:24 UTC 2022
Date: Wednesday, April 13, 2022 @ 07:14:24
Author: grawlinson
Revision: 1186021
archrelease: copy trunk to community-any
Added:
python-darkdetect/repos/community-any/
python-darkdetect/repos/community-any/PKGBUILD
(from rev 1186020, python-darkdetect/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-darkdetect/repos/community-any/PKGBUILD (from rev 1186020, python-darkdetect/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-04-13 07:14:24 UTC (rev 1186021)
@@ -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