-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
- Loading branch information
1 parent
98e56fe
commit a246e47
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pkgbase = python-darkdetect | ||
pkgdesc = Detect OS Dark Mode from Python | ||
pkgver = 0.8.0 | ||
pkgrel = 4 | ||
url = https://github.com/albertosottile/darkdetect | ||
arch = any | ||
license = BSD-1-Clause | ||
makedepends = git | ||
makedepends = python3-build | ||
makedepends = python3-installer | ||
makedepends = python3-wheel | ||
makedepends = python3-setuptools | ||
depends = python3 | ||
source = https://github.com/albertosottile/darkdetect/archive/refs/tags/v${pkgver}.tar.gz | ||
sha256sums=('SKIP') | ||
|
||
pkgname = python-darkdetect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## Based on archlinux package | ||
## Maintainer: George Rawlinson <[email protected]> | ||
## Contributor: Padraic Fanning <fanninpm AT miamioh DOT edu> | ||
|
||
# Maintainer: MrDuartePT <[email protected]> | ||
|
||
_pkgname=darkdetect | ||
pkgname=python3-darkdetect | ||
pkgver=0.8.0 | ||
pkgrel=4 | ||
pkgdesc='Detect OS Dark Mode from Python' | ||
arch=('any') | ||
url='https://github.com/albertosottile/darkdetect' | ||
license=('BSD-1-Clause') | ||
depends=('python3') | ||
makedepends=( | ||
'git' | ||
'python3-build' | ||
'python3-installer' | ||
'python3-wheel' | ||
'python3-setuptools' | ||
) | ||
source=("https://github.com/albertosottile/darkdetect/archive/refs/tags/v${pkgver}.tar.gz") | ||
sha256sums=('SKIP') | ||
|
||
build() { | ||
cd "${_pkgname}-${pkgver}" | ||
|
||
python3 -m build --wheel --no-isolation | ||
} | ||
|
||
package() { | ||
cd "${_pkgname}-${pkgver}" | ||
|
||
python3 -m installer --destdir="${pkgdir}" dist/*.whl | ||
|
||
install -vDm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE | ||
} |