mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/py3-modern_colorthief: new aport
This commit is contained in:
parent
8058918f04
commit
ed3cbf5669
1 changed files with 40 additions and 0 deletions
40
testing/py3-modern_colorthief/APKBUILD
Normal file
40
testing/py3-modern_colorthief/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Contributor: Jakob Meier <comcloudway@ccw.icu>
|
||||||
|
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
|
||||||
|
pkgname=py3-modern_colorthief
|
||||||
|
pkgver=0.1.7
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Colorthief but with modern codes"
|
||||||
|
url="https://github.com/baseplate-admin/modern_colorthief"
|
||||||
|
arch="all"
|
||||||
|
license="MIT"
|
||||||
|
makedepends="
|
||||||
|
cargo
|
||||||
|
py3-gpep517
|
||||||
|
py3-maturin
|
||||||
|
"
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
source="https://github.com/baseplate-admin/modern_colorthief/archive/$pkgver/modern_colorthief-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/modern_colorthief-$pkgver"
|
||||||
|
# the test depends on fastcolorthief, which isn't packaged in alpine
|
||||||
|
options="!check net"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
cargo fetch --target="$CTARGET" --locked
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
b2109e5554d8627dfddbd84bc25fb1fb701a80f2d27c8551078680c7775a1516d88adf95679591baadf8ea1fceb64ff4df0aa8547af06ebd3da55195c8f3af6d modern_colorthief-0.1.7.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue