pciutils pci.ids.

This commit is contained in:
4fury-c3440d8
2021-11-27 01:36:04 +03:00
parent b9ecbbc07e
commit a0197cd701
2 changed files with 22 additions and 25 deletions
+9 -11
View File
@@ -2,25 +2,23 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
# 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
j = ''.join([
' SHARED="yes"',
' PREFIX=/usr',
' IDSDIR="/usr/share/hwdata" '
])
def build():
autotools.make('OPT="%s" \
SHARED="yes" \
PREFIX=/usr \
IDSDIR="/usr/share/misc" \
all' % get.CFLAGS())
autotools.make('OPT="%s" %s all' % (get.CFLAGS(), j))
def install():
autotools.rawInstall('DESTDIR="%s" \
PREFIX=/usr \
SHARED="yes" \
IDSDIR="/usr/share/misc" \
install-lib' % get.installDIR())
autotools.rawInstall('DESTDIR="%s" %s install-lib' % (get.installDIR(), j))
# remove update-pciids
pisitools.remove("/usr/sbin/update-pciids")