Yaky's

Building postmarketOS packages using pmbootstrap


pmbootstrap on postmarketOS wiki

Build instuctions are in APKBUILD files.

pmbootstrap only includes postmarketOS-specific packages, most software is maintained in aports (Alpine Linux ports)
Alpine linux ports
$ git clone https://github.com/alpinelinux/aports.git

Move pmaports to home directory (pmbootstrap calls pmaports directory "aports" in config)
$ olddir="$(pmbootstrap config aports)"
$ newdir="$HOME/pmaports"
$ mv "$olddir" "$newdir"
$ pmbootstrap config aports "$newdir"

Fork aport (Alpine port) into pmaports (postmarketOS Alpine ports)
$ pmbootstrap aportgen --fork-alpine megapixels

Build a package for PinePhone
$ pmbootstrap build dino --force --arch=aarch64 --src=~/src/dino