Skip to content

Commit

Permalink
python3-darkdetect: add package
Browse files Browse the repository at this point in the history
Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
  • Loading branch information
MrDuartePT committed Dec 27, 2024
1 parent 98e56fe commit a246e47
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/python3-darkdetect/.SRCINFO
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
38 changes: 38 additions & 0 deletions packages/python3-darkdetect/python3-darkdetect.pacscript
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
}

0 comments on commit a246e47

Please sign in to comment.