add alarm/python-dufte

This commit is contained in:
graysky 2021-06-24 21:51:35 -04:00
parent ea963543a2
commit 945076ccd1
2 changed files with 43 additions and 3 deletions

View file

@ -0,0 +1,40 @@
# Maintainer: graysky <graysky AT archlinux DOT us>
# Contributor: loqs
_pkgname=dufte
pkgname=python-dufte
pkgver=0.2.20
pkgrel=1
pkgdesc='Creates clean and beautiful plots that work on light and dark backgrounds.'
arch=(any)
url='https://github.com/nschloe/duf'
license=(GPL3)
depends=(python-matplotlib python-numpy)
makedepends=(python-pytest python-setuptools python-build python-install python-wheel)
source=("$pkgname-$pkgver.tar.gz::https://github.com/nschloe/$_pkgname/archive/v$pkgver.tar.gz")
b2sums=('131896389112dbc5e8aee1844ee2576bc90fcf52d9c57f4663f354cefecefa1e82977ab392d5584362ab0c7abc477346264a1db1f174d0ef0a7dc7e970e87629')
build() {
cd $_pkgname-$pkgver
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_pkgname-$pkgver
mkdir -p temp
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
python -m install --optimize=1 --destdir=temp dist/*.whl
PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" python -m pytest
}
package() {
cd $_pkgname-$pkgver
export PYTHONHASHSEED=0
python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s $site_packages/$_pkgname-$pkgver.dist-info/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

View file

@ -6,12 +6,12 @@
buildarch=12
pkgbase=linux-raspberrypi4
_commit=ab77c51f2176b7425d25d28ff349742864afae34
_commit=1bac41882b4922c39b9c16b3687ab116eea16eac
_srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="Raspberry Pi 4"
pkgver=5.10.44
pkgrel=4
pkgrel=5
arch=('armv7h' 'aarch64')
url="http://www.kernel.org/"
license=('GPL2')
@ -25,7 +25,7 @@ source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz"
'0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch'
'60-linux.hook'
'90-linux.hook')
md5sums=('49151348f0067f3319ce5da19e22f9ba'
md5sums=('77cb05d48c04c120401e82a976cea1e7'
'31c02f4518d46deb5f0c2ad1f8b083cd'
'86d4a35722b5410e3b29fc92dae15d4b'
'f66a7ea3feb708d398ef57e4da4815e9'