[aur] respecting BAUH_ARCH_OPTIMIZE when makepkg calls are executed

This commit is contained in:
Vinicius Moreira
2019-11-29 09:05:20 -03:00
parent 915c3b50a3
commit dca66b315e
3 changed files with 26 additions and 12 deletions

View File

@@ -10,3 +10,7 @@ CATEGORIES_FILE_PATH = CATEGORIES_CACHE_DIR + '/aur.txt'
URL_CATEGORIES_FILE = 'https://raw.githubusercontent.com/vinifmor/bauh-files/master/aur/categories.txt'
CONFIG_DIR = '{}/.config/bauh/arch'.format(HOME_PATH)
CUSTOM_MAKEPKG_PATH = '{}/makepkg.conf'.format(CONFIG_DIR)
def should_optimize_compilation() -> bool:
return bool(int(os.getenv('BAUH_ARCH_OPTIMIZE', 1)))