Alpine packaging
This commit is contained in:
parent
fd5a793ed2
commit
3f7f144fac
@ -1,15 +1,19 @@
|
|||||||
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||||||
|
|
||||||
# Python APKGBUILD template: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/py3-requests/APKBUILD
|
# 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
|
||||||
# Alpine packaging with pmbootstrap: https://wiki.postmarketos.org/wiki/Packaging#Generate_a_template
|
# 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
|
# 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
|
||||||
|
|
||||||
pkgname=py3-nextcast
|
pkgname=py3-nextcast
|
||||||
pkgver=0.0.1
|
pkgver=0.0.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Nextcloud Podcast Client"
|
pkgdesc="Nextcloud Podcast Client"
|
||||||
url="https://git.privacy1st.de/langfingaz/nextcast"
|
url="https://git.privacy1st.de/langfingaz/nextcast"
|
||||||
arch="all"
|
# all: all architectures
|
||||||
|
# noarch: architecture independent, e.g. pure Python
|
||||||
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
# Requirements for tests are not available in main
|
# Requirements for tests are not available in main
|
||||||
#options="!check"
|
#options="!check"
|
||||||
@ -18,18 +22,22 @@ depends="
|
|||||||
py3-requests
|
py3-requests
|
||||||
py3-pymediainfo
|
py3-pymediainfo
|
||||||
py3-feedparser
|
py3-feedparser
|
||||||
python3
|
|
||||||
"
|
"
|
||||||
makedepends="py3-build py3-twine"
|
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
|
||||||
source="https://git.privacy1st.de/langfingaz/nextcast/archive/nextcast-$pkgver.tar.gz"
|
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.
|
||||||
builddir="$srcdir/nextcast-$pkgver"
|
builddir="$srcdir/nextcast-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python -m build --wheel --no-isolation
|
#cd $builddir
|
||||||
|
python3 -m build --wheel --skip-dependency-check --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
#cd $builddir
|
||||||
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha256sums="
|
sha256sums="
|
||||||
|
@ -28,7 +28,7 @@ export PYTHONPATH="$${PYTHONPATH:-}:src"
|
|||||||
## Alpine Packaging
|
## Alpine Packaging
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pmbootstrap newapkbuild py3-nextcast -y -l MIT
|
pmbootstrap newapkbuild py3-nextcast -f -y -l MIT -u https://git.privacy1st.de/langfingaz/nextcast
|
||||||
cat ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-nextcast/APKBUILD
|
cat ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-nextcast/APKBUILD
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -39,3 +39,6 @@ pmbootstrap checksum py3-nextcast
|
|||||||
pmbootstrap build py3-nextcast
|
pmbootstrap build py3-nextcast
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pmbootstrap shutdown
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user