#!/usr/bin/env python3

from lilaclib import *


def pre_build():
    aur_pre_build()
    for line in edit_file('PKGBUILD'):
        if line.startswith('_subarch='):
            line = '_subarch=40'
        if line.startswith('prepare() {'):
            line = line + '\n    git config --global user.email "lilac@noreply.bgme.me"\n    git config --global user.name "Lilac"\n'
        print(line)