-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e73f2d
commit eb62142
Showing
3 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# Trimmed lilac.py | ||
#!/usr/bin/env python3 | ||
# | ||
# This file is the most simple lilac.py file, | ||
# and it suits for most packages in AUR. | ||
# | ||
|
||
from lilaclib import * | ||
|
||
#build_prefix = 'extra-x86_64' | ||
#pre_build = aur_pre_build | ||
#post_build = aur_post_build | ||
|
||
#if __name__ == '__main__': | ||
# single_main() | ||
def pre_build(): | ||
aur_pre_build() | ||
pkgver = "" | ||
for line in edit_file('PKGBUILD'): | ||
if line.strip().startwith('_pkgver='): | ||
pkgver = line[len('_pkgver='):].strip().replace('-', '.') | ||
elif line.strip().startwith('pkgver='): | ||
print(f'pkgver={pkgver}') | ||
else: | ||
print(line) | ||
|
||
if __name__== '__main__': | ||
single_main('extra-x86_64') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters