diff options
author | Swift Geek | 2014-01-10 00:40:02 +0000 |
---|---|---|
committer | Kyle Keen | 2014-01-10 00:40:02 +0000 |
commit | afd3c61e0b8cffddfc4416aa7a0ef6fab0b18cef (patch) | |
tree | 6e2934807dd39c8605386f44c7a20bf4ca55452e | |
parent | 06e38bd4bdf0ec96a7ed2954c20c2b9d77b6b548 (diff) | |
download | aur-afd3c61e0b8cffddfc4416aa7a0ef6fab0b18cef.tar.gz |
Import from pkgbuild.com service
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -18,7 +18,7 @@ optdepends=('perl-wx: GUI support' 'perl-net-dbus: notifications support via any dbus-based notifier' 'perl-xml-sax-expatxs: make AMF parsing faster' 'perl-xml-sax: Additive Manufacturing File Format (AMF) support' - 'perl-wx-glcanvas: support for opengl preview' + 'perl-wx-glcanvas: support for opengl preview' 'perl-opengl: support for opengl preview' 'perl-class-xsaccessor: creating faster accessor methods') # 'perl-growl-gntp: notifications support via growl' @@ -34,7 +34,7 @@ md5sums=('SKIP' _gitname="Slic3r" countdown() { - local i + local i for ((i=$1; i>=1; i--)); do [[ ! -e /proc/$$ ]] && exit echo -ne "\rPress [i] to start interactive config in $i second(s) or any key to skip " @@ -68,8 +68,8 @@ prepare() { case $select_mode in "branch/commit") cd "$_src_dir" - # Pick a branch - default is master… for now - branches=( $(git ls-remote --heads origin | sed 's?.*refs/heads/??' | awk '{printf $1; if ($1 == "master") printf " on ";else printf " off "}') ) + # Pick a branch - default is stable… for now + branches=( $(git ls-remote --heads origin | sed 's?.*refs/heads/??' | awk '{printf $1; if ($1 == "stable") printf " on ";else printf " off "}') ) branch=$(dialog --keep-tite --backtitle "$pkgname" --no-items --radiolist 'Pick branch' 0 0 0 ${branches[*]} 2>&1 >/dev/tty) unset branches msg2 "Chosen \"${branch}\" branch " @@ -100,6 +100,9 @@ prepare() { echo "WTF!? This shouldn't happen at all" ;; esac + else + cd "$_src_dir" + git checkout stable -f fi cd "$_src_dir" |