2023-11-09 14:58:04 +01:00
|
|
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
|
|
|
|
2023-11-09 17:43:23 +01:00
|
|
|
# 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
|
2023-11-09 15:32:18 +01:00
|
|
|
# Different Python APKGBUILD template: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/py3-requests/APKBUILD
|
2023-11-09 14:58:04 +01:00
|
|
|
# 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
|
2023-11-09 15:32:18 +01:00
|
|
|
# APKGBUILD reference: https://wiki.alpinelinux.org/wiki/APKBUILD_Reference
|
2023-11-09 17:43:23 +01:00
|
|
|
# .apk file extension == .tar.gz file extension
|
2023-11-09 14:58:04 +01:00
|
|
|
|
|
|
|
pkgname=py3-nextcast
|
2023-11-13 12:26:01 +01:00
|
|
|
pkgver=0.0.4
|
2023-11-09 14:58:04 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Nextcloud Podcast Client"
|
|
|
|
url="https://git.privacy1st.de/langfingaz/nextcast"
|
2023-11-09 15:32:18 +01:00
|
|
|
# all: all architectures
|
|
|
|
# noarch: architecture independent, e.g. pure Python
|
|
|
|
arch="noarch"
|
2023-11-09 14:58:04 +01:00
|
|
|
license="MIT"
|
2023-11-09 17:43:23 +01:00
|
|
|
options="!check"
|
2023-11-09 14:58:04 +01:00
|
|
|
depends="
|
|
|
|
py3-requests
|
|
|
|
py3-pymediainfo
|
|
|
|
py3-feedparser
|
2023-11-09 18:34:58 +01:00
|
|
|
py3-simple-term-menu
|
2023-11-09 14:58:04 +01:00
|
|
|
"
|
2023-11-09 15:32:18 +01:00
|
|
|
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
|
2023-11-09 17:43:23 +01:00
|
|
|
source="https://git.privacy1st.de/langfingaz/nextcast/archive/nextcast-$pkgver.tar.gz"
|
2023-11-09 15:32:18 +01:00
|
|
|
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.
|
2023-11-09 17:43:23 +01:00
|
|
|
builddir="$srcdir/nextcast"
|
2023-11-09 14:58:04 +01:00
|
|
|
|
|
|
|
build() {
|
2023-11-09 17:43:23 +01:00
|
|
|
#pwd >&2
|
|
|
|
#echo * >&2
|
|
|
|
|
|
|
|
python3 -m build --wheel --no-isolation
|
2023-11-09 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-11-09 15:32:18 +01:00
|
|
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
2023-11-09 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sha256sums="
|
|
|
|
444b527dc4f2ef6460724a38cef3cebd9e0872c1 nextcast-0.0.1.tar.gz
|
|
|
|
"
|