list files util.

This commit is contained in:
4fury-c3440d8
2021-10-13 18:08:45 +03:00
parent 3db93a37fb
commit 02e31a567a
2 changed files with 72 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "lf-r%s" % get.srcVERSION()
def build():
shelltools.export("version", "%s" % get.srcVERSION())
shelltools.system("GOPATH=%s gen/build.sh" % get.workDIR())
def install():
pisitools.dobin("lf")
pisitools.doman("lf.1")
pisitools.insinto("/usr/share/applications", "lf.desktop")
pisitools.dodoc("LICENSE", "README.md")
for i in ["etc/*"]:
pisitools.insinto("/usr/share/doc/lf/examples/", "%s" % i)