nextcast/Alpine/APKGBUILD
2023-11-09 18:10:37 +01:00

49 lines
1.7 KiB
Plaintext

# Maintainer: Daniel Langbein <daniel@systemli.org>
# Python APKGBUILD template:
# - https://github.com/alpinelinux/aports/blob/master/community/py3-vt-py/APKBUILD
# - https://github.com/alpinelinux/aports/blob/master/testing/sigma/APKBUILD
# Different Python APKGBUILD template: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/py3-requests/APKBUILD
# Alpine packaging with pmbootstrap: https://wiki.postmarketos.org/wiki/Packaging#Generate_a_template
# Parsing an APKGBUILD: https://wiki.postmarketos.org/wiki/Pmbootstrap_development_guide#Testing_the_APKBUILD_parser_after_changes
# APKGBUILD reference: https://wiki.alpinelinux.org/wiki/APKBUILD_Reference
# .apk file extension == .tar.gz file extension
pkgname=py3-nextcast
pkgver=0.0.2
pkgrel=1
pkgdesc="Nextcloud Podcast Client"
url="https://git.privacy1st.de/langfingaz/nextcast"
# all: all architectures
# noarch: architecture independent, e.g. pure Python
arch="noarch"
license="MIT"
options="!check"
# TODO: simple-term-menu
depends="
py3-requests
py3-pymediainfo
py3-feedparser
"
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
source="https://git.privacy1st.de/langfingaz/nextcast/archive/nextcast-$pkgver.tar.gz"
subpackages="$pkgname-pyc"
# $srcdir: The directory where sources, from the source variable, are downloaded to and unpacked to.
# $builddir: This variable should point to the directory inside $srcdir where the main package source is unpacked.
builddir="$srcdir/nextcast"
build() {
#pwd >&2
#echo * >&2
python3 -m build --wheel --no-isolation
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha256sums="
444b527dc4f2ef6460724a38cef3cebd9e0872c1 nextcast-0.0.1.tar.gz
"