url=$mirror/rsync-3.0.9.tar.gz fetch() { wget -c $url -O src/rsync-3.0.9.tar.gz } unpack() { pushd src [ -d rsync-3.0.9 ] || tar xzf rsync-3.0.9.tar.gz popd } build() { pushd src/rsync-3.0.9 CC=x86_64-linux-musl-gcc ./configure --prefix=$root LDFLAGS="-static" || return 1 make -j$nprocs || return 1 popd } install() { pushd src/rsync-3.0.9 make install || return 1 popd }