add shntool

This commit is contained in:
bgme 2023-05-16 14:54:36 +08:00
parent 05b311c4b7
commit 452f73a7c4
2 changed files with 20 additions and 0 deletions

9
repo/shntool/lilac.py Normal file
View file

@ -0,0 +1,9 @@
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)