rebuild: add --branch to package options

master
an 2019-05-18 13:47:36 -04:00
parent 267e014547
commit 1b169ffef9
1 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,7 @@ build_package() {
local install_as
local makepkg_args="-srLcCf --noconfirm"
local pull_url="https://aur.archlinux.org/$pkg.git"
local branch
while (( $# ))
do
@ -37,6 +38,10 @@ build_package() {
pull_url=$2
shift 2
;;
--branch)
branch=-b "$2"
shift 2
;;
--install-as)
install_as=$2
shift 2
@ -54,7 +59,7 @@ build_package() {
if [[ ! -d ~/bin/$pkg ]]
then
git clone "$pull_url"
git clone "$branch" "$pull_url"
fi
cd "$pkg" || exit_on_err