Skip to content

Commit 83aed32

Browse files
committed
goldendict-ng: use lilac.py to automate commit ID update
1 parent 8ec3b13 commit 83aed32

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

archlinuxcn/goldendict-ng/lilac.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/python3
2+
3+
from lilaclib import *
4+
5+
def pre_build():
6+
substrings = _G.newver.split('-Release.')
7+
for line in edit_file('PKGBUILD'):
8+
if line.startswith('_commit_id='):
9+
line = f'_commit_id={substrings[1]}'
10+
print(line)
11+
12+
update_pkgver_and_pkgrel(substrings[0])

archlinuxcn/goldendict-ng/lilac.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ maintainers:
22
- github: Integral-Tech
33
email: integral@archlinuxcn.org
44

5-
pre_build_script: update_pkgver_and_pkgrel(_G.newver.split('-')[0])
65
post_build_script: git_pkgbuild_commit()
76

87
repo_depends:

0 commit comments

Comments
 (0)