Files
4fury-c3440d8 286c9ed063 gpsd !24.10.21.
2021-10-23 00:28:12 +03:00

24 lines
664 B
Python

#!/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, get
shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
i = "/usr/bin/env python3 $(which scons)"
def setup():
pass
def build():
shelltools.system("%s target_python=python3 prefix=/usr sbindir=/usr/sbin udevdir=/lib/udev" % i)
def install():
shelltools.system("DESTDIR=%s %s udev-install prefix=/usr" % (get.installDIR(), i))
# fix shebang
shelltools.system("find %s/usr/bin -type f -exec sed -i 's|env\ python$|env python3|g' {} \;" % get.installDIR())