diff options
author | Leonard König | 2015-11-20 15:40:55 +0100 |
---|---|---|
committer | Leonard König | 2015-11-20 15:40:55 +0100 |
commit | db910e71b8df447658456ae757cc1b7a234c2251 (patch) | |
tree | ebb569c45d4b82916d142f58e80a325678ba6e86 /PKGBUILD | |
parent | 3cd6e017062bff2da3e562ccf32bc823f255ea66 (diff) | |
download | aur-db910e71b8df447658456ae757cc1b7a234c2251.tar.gz |
improve message output, no new rel
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -47,12 +47,16 @@ options=(!strip) PKGEXT='.pkg.tar' # Prevent compressing of the final package prepare() { - warning "If you are using an AUR-Helper or building on a small partition (like /tmp)," - warning "you might want to change the build-/cache-directory as this package is rather big" + if [ "$(df . -BG --output=avail | awk -F'[^0-9]*' 'FNR==2 {print $2;}')" -le "10" ]; then + warning "It seems that you have less than 10GB left.If you are using an AUR-Helper" + warning "or building on a small partition (like /tmp), you might want to change the" + warning "build-/cache-directory as this package is rather big" + fi } build() { - yes | fakeroot sh "unity-editor-installer-${pkgver}.sh" + msg2 "Extracting archive ..." + yes | fakeroot sh "unity-editor-installer-${pkgver}.sh" > /dev/null rm "unity-editor-installer-${pkgver}.sh" } |