Alpine packaging
This commit is contained in:
parent
3f7f144fac
commit
7a9e4babeb
@ -1,10 +1,13 @@
|
|||||||
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||||||
|
|
||||||
# Python APKGBUILD template: https://github.com/alpinelinux/aports/blob/master/community/py3-vt-py/APKBUILD
|
# 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
|
# 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
|
# APKGBUILD reference: https://wiki.alpinelinux.org/wiki/APKBUILD_Reference
|
||||||
|
# .apk file extension == .tar.gz file extension
|
||||||
|
|
||||||
pkgname=py3-nextcast
|
pkgname=py3-nextcast
|
||||||
pkgver=0.0.1
|
pkgver=0.0.1
|
||||||
@ -15,8 +18,7 @@ url="https://git.privacy1st.de/langfingaz/nextcast"
|
|||||||
# noarch: architecture independent, e.g. pure Python
|
# noarch: architecture independent, e.g. pure Python
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
# Requirements for tests are not available in main
|
options="!check"
|
||||||
#options="!check"
|
|
||||||
# TODO: simple-term-menu
|
# TODO: simple-term-menu
|
||||||
depends="
|
depends="
|
||||||
py3-requests
|
py3-requests
|
||||||
@ -24,19 +26,20 @@ depends="
|
|||||||
py3-feedparser
|
py3-feedparser
|
||||||
"
|
"
|
||||||
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
|
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"
|
source="https://git.privacy1st.de/langfingaz/nextcast/archive/nextcast-$pkgver.tar.gz"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
# $srcdir: The directory where sources, from the source variable, are downloaded to and unpacked to.
|
# $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: This variable should point to the directory inside $srcdir where the main package source is unpacked.
|
||||||
builddir="$srcdir/nextcast-$pkgver"
|
builddir="$srcdir/nextcast"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
#cd $builddir
|
#pwd >&2
|
||||||
python3 -m build --wheel --skip-dependency-check --no-isolation
|
#echo * >&2
|
||||||
|
|
||||||
|
python3 -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
#cd $builddir
|
|
||||||
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +37,14 @@ cp Alpine/APKGBUILD ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-nextcas
|
|||||||
pmbootstrap apkbuild_parse py3-nextcast
|
pmbootstrap apkbuild_parse py3-nextcast
|
||||||
pmbootstrap checksum py3-nextcast
|
pmbootstrap checksum py3-nextcast
|
||||||
pmbootstrap build py3-nextcast
|
pmbootstrap build py3-nextcast
|
||||||
|
#=> build x86_64/py3-nextcast-0.0.1-r1.apk
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pmbootstrap shutdown
|
pmbootstrap shutdown
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-0.0.1-r1.apk
|
||||||
|
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-pyc-0.0.1-r1.apk
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user