index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-02-09 07:54:42 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-11 10:23:43 -0600 |
commit | 62fc966882aab2807c515614332ea74f848a5cf3 (patch) | |
tree | 8a0750efa32300969a75e687c97a540750470925 /scripts/makepkg.sh.in | |
parent | 942bb9e64a7ba11e5f2a0db374bcaa21868eceb6 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 7 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 001178ad..16dc0b8f 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1850,6 +1850,10 @@ else source "$BUILDFILE" fi +# set defaults if they weren't specified in buildfile +pkgbase=${pkgbase:-${pkgname[0]}} +epoch=${epoch:-0} + if (( GENINTEG )); then mkdir -p "$srcdir" chmod a-s "$srcdir" @@ -1859,9 +1863,6 @@ if (( GENINTEG )); then exit 0 # $E_OK fi -pkgbase=${pkgbase:-${pkgname[0]}} -epoch=${epoch:-0} - # check the PKGBUILD for some basic requirements check_sanity || exit 1 |