[aur.sh] Add support for local pkgbuild repo

master
Taeyeon Mori 9 years ago
parent 11d8ff22b0
commit 263b93b392
  1. 7
      bin/aur.sh
  2. 1
      etc/aur.conf

@ -266,6 +266,12 @@ build_package() {
local p="$1" # package name local p="$1" # package name
local COWER_INFO="$2" local COWER_INFO="$2"
if [ -e "$CUSTOMDIR/$p" ]; then
cd "$CUSTOMDIR"
AFFECTED_PKGS=("${AFFECTED_PKGS[@]}" "$p")
$LIST_ONLY && return
msg "[AUR] Found '$p' in '$CUSTOMDIR', Using that"
else
if $USE_COWER; then if $USE_COWER; then
[ -z "$COWER_INFO" ] && COWER_INFO=`cower -i $p` [ -z "$COWER_INFO" ] && COWER_INFO=`cower -i $p`
@ -306,6 +312,7 @@ build_package() {
warn "[AUR] $p: Found #CUSTOMPKG; not updating PKGBUILD from AUR!" \ warn "[AUR] $p: Found #CUSTOMPKG; not updating PKGBUILD from AUR!" \
} || \ } || \
$aur_get "$p" || throw 2 "[AUR] $p: Couldn't download package" $aur_get "$p" || throw 2 "[AUR] $p: Couldn't download package"
fi
$DL_ONLY && return $DL_ONLY && return

@ -7,6 +7,7 @@ PKGDEST="$AURDIR/Packages"
SRCDEST="$AURDIR/Source" SRCDEST="$AURDIR/Source"
ABSDEST="$AURDIR/ABS" ABSDEST="$AURDIR/ABS"
GNUPGHOME="$AURDIR/gnupg" GNUPGHOME="$AURDIR/gnupg"
CUSTOMDIR="$HOME/Development/custom-pkgbuilds"
# Local options # Local options
test -e "$DOTFILES/etc/aur.conf.local" && test -e "$DOTFILES/etc/aur.conf.local" &&

Loading…
Cancel
Save