Alpine packaging

This commit is contained in:
Daniel Langbein 2023-11-09 18:34:58 +01:00
parent c0626611f6
commit b06233daa8
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
4 changed files with 56 additions and 6 deletions

View File

@ -10,7 +10,7 @@
# .apk file extension == .tar.gz file extension
pkgname=py3-nextcast
pkgver=0.0.2
pkgver=0.0.3
pkgrel=1
pkgdesc="Nextcloud Podcast Client"
url="https://git.privacy1st.de/langfingaz/nextcast"
@ -19,11 +19,11 @@ url="https://git.privacy1st.de/langfingaz/nextcast"
arch="noarch"
license="MIT"
options="!check"
# TODO: simple-term-menu
depends="
py3-requests
py3-pymediainfo
py3-feedparser
py3-simple-term-menu
"
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
source="https://git.privacy1st.de/langfingaz/nextcast/archive/nextcast-$pkgver.tar.gz"

View File

@ -27,6 +27,24 @@ export PYTHONPATH="$${PYTHONPATH:-}:src"
## Alpine Packaging
### simple-term-menu
```shell
pmbootstrap newapkbuild -f py3-simple-term-menu
cp simple-term-menu/Alpine/APKGBUILD ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-simple-term-menu/APKBUILD
pmbootstrap apkbuild_parse py3-simple-term-menu
pmbootstrap checksum py3-simple-term-menu
pmbootstrap build --arch aarch64 py3-simple-term-menu
```
Sideload:
```shell
pmbootstrap sideload --host yodaEnchilada --user yoda --arch aarch64 --install-key py3-simple-term-menu
```
### nextcast
```shell
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
@ -37,7 +55,7 @@ cp Alpine/APKGBUILD ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-nextcas
pmbootstrap apkbuild_parse py3-nextcast
pmbootstrap checksum py3-nextcast
pmbootstrap build --arch aarch64 py3-nextcast
#=> build x86_64/py3-nextcast-0.0.2-r1.apk
#=> build x86_64/py3-nextcast-0.0.3-r1.apk
```
```shell
@ -45,8 +63,8 @@ pmbootstrap shutdown
```
```shell
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-0.0.2-r1.apk
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-pyc-0.0.2-r1.apk
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-0.0.3-r1.apk
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-pyc-0.0.3-r1.apk
```
Sideload to your postmarketOS phone:

View File

@ -3,7 +3,7 @@
[metadata]
name = nextcast
version = 0.0.2
version = 0.0.3
author = Daniel Langbein
author_email = daniel@systemli.org
description = Nextcloud Podcast Client

View File

@ -0,0 +1,32 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
# Based on https://gitlab.archlinux.org/archlinux/packaging/packages/python-simple-term-menu/-/blob/main/PKGBUILD
pkgname=py3-simple-term-menu
pkgver=1.6.1
pkgrel=1
pkgdesc="A Python package which creates simple interactive menus on the command line."
url="https://github.com/IngoMeyer441/simple-term-menu"
arch="noarch"
license="MIT"
options="!check"
depends="python3"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/s/simple-term-menu/simple-term-menu-$pkgver.tar.gz"
subpackages="$pkgname-pyc"
builddir="$srcdir/simple-term-menu-$pkgver"
build() {
pwd >&2
echo * >&2
python3 setup.py build
}
package() {
python3 setup.py install --optimize=1 \
--prefix=/usr \
--root="${pkgdir}" \
--skip-build
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}