add usb-modeswitch.

This commit is contained in:
4fury-c3440d8
2020-11-20 00:40:10 +03:00
parent 78215047ca
commit 0aa82057a6
3 changed files with 128 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
SNAPSHOT="20191128"
def build():
autotools.make("CC='%s' CFLAGS='%s'" % (get.CC(), get.CFLAGS()))
def install():
autotools.rawInstall("DESTDIR='%s'" % get.installDIR())
autotools.rawInstall("-C ../usb-modeswitch-data-%s DESTDIR='%s'" % (SNAPSHOT, get.installDIR()))
pisitools.removeDir("/etc/usb_modeswitch.d")
pisitools.dodoc("ChangeLog", "COPYING", "README")