~dricottone/huttese-apk

fbeb3da719bc5896ce804ba581c8ddafd6e0eb7a — Drew DeVault 5 years ago 0deddc8
Add option to pass -R to abuild
2 files changed, 9 insertions(+), 2 deletions(-)

M build.yml
M pkgkit
M build.yml => build.yml +1 -1
@@ 22,7 22,7 @@ tasks:
      ./pkgkit add-repo -s sr.ht ~/.abuild/alpine@sr.ht.rsa
  - build: |
      cd sr.ht-apkbuilds
      ./pkgkit build -cu "${packages[@]}"
      ./pkgkit build -Rcu "${packages[@]}"
  - deploy: |
      cd sr.ht-apkbuilds
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config

M pkgkit => pkgkit +8 -1
@@ 93,12 93,14 @@ add_repo() {
}

build() (
	builddeps=0
	checksum=0
	updpkgrel=0
	pkgver=""
	while getopts cuv: flag
	do
		case $flag in
			R) builddeps=1 ;;
			c) checksum=1 ;;
			u) updpkgrel=1 ;;
			v) pkgver="$OPTARG" ;;


@@ 128,7 130,12 @@ build() (
			then
				abuild checksum
			fi
			abuild -R
			if [ $builddeps -eq 1 ]
			then
				abuild -R
			else
				abuild -r
			fi
		)
	done
)