From 7a9e4babeb7df1a0d3cfa8d3bb558d52479e30a2 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 9 Nov 2023 17:43:23 +0100 Subject: [PATCH] Alpine packaging --- Alpine/APKGBUILD | 19 +++++++++++-------- README.md | 6 ++++++ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Alpine/APKGBUILD b/Alpine/APKGBUILD index a68d2c1..c6decb4 100644 --- a/Alpine/APKGBUILD +++ b/Alpine/APKGBUILD @@ -1,10 +1,13 @@ # Maintainer: Daniel Langbein -# 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 # 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.1 @@ -15,8 +18,7 @@ url="https://git.privacy1st.de/langfingaz/nextcast" # noarch: architecture independent, e.g. pure Python arch="noarch" license="MIT" -# Requirements for tests are not available in main -#options="!check" +options="!check" # TODO: simple-term-menu depends=" py3-requests @@ -24,19 +26,20 @@ depends=" py3-feedparser " 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" # $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" build() { - #cd $builddir - python3 -m build --wheel --skip-dependency-check --no-isolation + #pwd >&2 + #echo * >&2 + + python3 -m build --wheel --no-isolation } package() { - #cd $builddir python3 -m installer --destdir="$pkgdir" dist/*.whl } diff --git a/README.md b/README.md index ff01a21..4bbd1b7 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,14 @@ cp Alpine/APKGBUILD ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-nextcas pmbootstrap apkbuild_parse py3-nextcast pmbootstrap checksum py3-nextcast pmbootstrap build py3-nextcast +#=> build x86_64/py3-nextcast-0.0.1-r1.apk ``` ```shell 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 +``` \ No newline at end of file