from lilaclib import * def pre_build(): aur_pre_build() for line in edit_file('PKGBUILD'): if line.startswith('source=('): line = 'source=("http://www.slackware.com/~alien/slackbuilds/${pkgname}/build/${pkgname}-${pkgver}.tar.gz"' print(line)