lilac/repo/linux-bcachefs-git/lilac.py
2023-08-23 22:58:20 +08:00

14 lines
396 B
Python

#!/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)