diff --git a/packages/python3-darkdetect/.SRCINFO b/packages/python3-darkdetect/.SRCINFO new file mode 100644 index 0000000000..d66bee97b5 --- /dev/null +++ b/packages/python3-darkdetect/.SRCINFO @@ -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 diff --git a/packages/python3-darkdetect/python3-darkdetect.pacscript b/packages/python3-darkdetect/python3-darkdetect.pacscript new file mode 100644 index 0000000000..9cc5cc4fbb --- /dev/null +++ b/packages/python3-darkdetect/python3-darkdetect.pacscript @@ -0,0 +1,38 @@ +## Based on archlinux package +## Maintainer: George Rawlinson +## Contributor: Padraic Fanning + +# Maintainer: MrDuartePT + +_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 +}