PKGBUILD: reorg and add some useful utils

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>