Skip to content

Commit

Permalink
inxi: fix pkgver pkgrel processing
Browse files Browse the repository at this point in the history
  • Loading branch information
OriginCode committed Jul 18, 2021
1 parent 4e73f2d commit eb62142
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion archlinuxcn/inxi/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgname=inxi
_pkgver=3.3.05-1
pkgver=${_pkgver//-/.}
pkgrel=8
pkgrel=1
pkgdesc="Full featured CLI system information tool"
arch=(any)
url="https://smxi.org/docs/inxi.htm"
Expand Down
23 changes: 13 additions & 10 deletions archlinuxcn/inxi/lilac.py
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')
2 changes: 0 additions & 2 deletions archlinuxcn/inxi/lilac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ maintainers:

build_prefix: extra-x86_64

pre_build_script: aur_pre_build(maintainers='FabioLolix')

post_build: aur_post_build

update_on:
Expand Down

0 comments on commit eb62142

Please sign in to comment.