build bzip2 for Android

step1、install build tools Android NDKversion >= r19) and ndk-pkg

step2、update ndk-pkg-formula-repository

ndk-pkg update

step3、build and install bzip2

ndk-pkg install bzip2
additional steps

view the preset formula of bzip2⤵︎

ndk-pkg formula view bzip2
{{ formula }}

if the preset formula of bzip2 dosn't meet your needs, you can edit the preset formula of bzip2, then build it ⤵︎

ndk-pkg formula edit bzip2