Alpine packaging
This commit is contained in:
parent
c0626611f6
commit
b06233daa8
@ -10,7 +10,7 @@
|
|||||||
# .apk file extension == .tar.gz file extension
|
# .apk file extension == .tar.gz file extension
|
||||||
|
|
||||||
pkgname=py3-nextcast
|
pkgname=py3-nextcast
|
||||||
pkgver=0.0.2
|
pkgver=0.0.3
|
||||||
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"
|
||||||
@ -19,11 +19,11 @@ url="https://git.privacy1st.de/langfingaz/nextcast"
|
|||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
options="!check"
|
options="!check"
|
||||||
# TODO: simple-term-menu
|
|
||||||
depends="
|
depends="
|
||||||
py3-requests
|
py3-requests
|
||||||
py3-pymediainfo
|
py3-pymediainfo
|
||||||
py3-feedparser
|
py3-feedparser
|
||||||
|
py3-simple-term-menu
|
||||||
"
|
"
|
||||||
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
|
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
|
||||||
source="https://git.privacy1st.de/langfingaz/nextcast/archive/nextcast-$pkgver.tar.gz"
|
source="https://git.privacy1st.de/langfingaz/nextcast/archive/nextcast-$pkgver.tar.gz"
|
||||||
|
24
README.md
24
README.md
@ -27,6 +27,24 @@ export PYTHONPATH="$${PYTHONPATH:-}:src"
|
|||||||
|
|
||||||
## Alpine Packaging
|
## 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
|
```shell
|
||||||
pmbootstrap newapkbuild py3-nextcast -f -y -l MIT -u https://git.privacy1st.de/langfingaz/nextcast
|
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
|
||||||
@ -37,7 +55,7 @@ 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 --arch aarch64 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
|
```shell
|
||||||
@ -45,8 +63,8 @@ pmbootstrap shutdown
|
|||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
```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-0.0.3-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-pyc-0.0.3-r1.apk
|
||||||
```
|
```
|
||||||
|
|
||||||
Sideload to your postmarketOS phone:
|
Sideload to your postmarketOS phone:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
name = nextcast
|
name = nextcast
|
||||||
version = 0.0.2
|
version = 0.0.3
|
||||||
author = Daniel Langbein
|
author = Daniel Langbein
|
||||||
author_email = daniel@systemli.org
|
author_email = daniel@systemli.org
|
||||||
description = Nextcloud Podcast Client
|
description = Nextcloud Podcast Client
|
||||||
|
32
simple-term-menu/Alpine/APKGBUILD
Normal file
32
simple-term-menu/Alpine/APKGBUILD
Normal 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}"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user