# BB10 apk repo

Alpine-style package repository for BlackBerry 10. Works after either
rooting method (autoroot or the old jailbreak).

## Install on the device

After rooting, SSH in as root and:

```sh
curl -fsSL https://bb10repo.whytofly.de/install-apk.sh | sh
```

This drops the `apk` binary + dependencies under
`/accounts/1000/shared/misc/apk/`, initializes the database, and
installs the `BB10 Packages` GUI app.

## Use

```sh
apk update                 # refresh the index
apk search <term>          # find packages
apk add bb10-starbattle    # install
apk upgrade                # update everything
apk del bb10-starbattle    # remove
```

Or open **BB10 Packages** from the homescreen for a GUI.

## Current packages

- `bb10-shell-shim` — virtual package, satisfies `/bin/sh` deps
- `bb10-uidcheck` — tiny test CLI
- `bb10-apkui` — `BB10 Packages` GUI
- `bb10-starbattle` — Star Battle puzzle

## What this is built from

- Source: <https://github.com/whytofly/bb_flash> (`tools/sbin/install-apk.sh`,
  `tools/sbin/build-repo.sh`)
- Toolchain: <https://github.com/whytofly/bb10-gcc9> (patched apk-tools
  + apk_ui)
- Signing: ed25519 keypair under `keys/` on the host; pubkey shipped
  with the installer.
