2023-11-09 14:58:04 +01:00
|
|
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
|
|
|
|
2023-11-09 15:32:18 +01:00
|
|
|
# Python APKGBUILD template: https://github.com/alpinelinux/aports/blob/master/community/py3-vt-py/APKBUILD
|
|
|
|
# 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 14:58:04 +01:00
|
|
|
|
|
|
|
pkgname=py3-nextcast
|
|
|
|
pkgver=0.0.1
|
|
|
|
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"
|
|
|
|
# Requirements for tests are not available in main
|
|
|
|
#options="!check"
|
|
|
|
# TODO: simple-term-menu
|
|
|
|
depends="
|
|
|
|
py3-requests
|
|
|
|
py3-pymediainfo
|
|
|
|
py3-feedparser
|
|
|
|
"
|
2023-11-09 15:32:18 +01:00
|
|
|
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
|
|
|
|
source="$pkgname-$pkgver.tar.gz::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.
|
2023-11-09 14:58:04 +01:00
|
|
|
builddir="$srcdir/nextcast-$pkgver"
|
|
|
|
|
|
|
|
build() {
|
2023-11-09 15:32:18 +01:00
|
|
|
#cd $builddir
|
|
|
|
python3 -m build --wheel --skip-dependency-check --no-isolation
|
2023-11-09 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-11-09 15:32:18 +01:00
|
|
|
#cd $builddir
|
|
|
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
2023-11-09 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sha256sums="
|
|
|
|
444b527dc4f2ef6460724a38cef3cebd9e0872c1 nextcast-0.0.1.tar.gz
|
|
|
|
"
|