blob: 353a1482467841d7052d49321b60f51233e76ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
MAKEDEPS="make "
DEPS="glibc kmod"
PKG_VER=3.7.0
SOURCE=https://www.kernel.org/pub/software/utils/pciutils/pciutils-$PKG_VER.tar.xz
DESC="PCI bus configuration space access library and tools"
build () {
make PREFIX=/usr \
SHAREDIR=/usr/share/hwdata \
SHARED=yes
}
package () {
make DESTDIR=$PKG_DEST \
PREFIX=/usr \
SHAREDIR=/usr/share/hwdata \
SHARED=yes \
install install-lib &&
chmod -v 755 $PKG_DEST/usr/lib/libpci.so
mkdir -pv $PKG_DEST/etc/cron.weekly/
cat > $PKG_DEST/etc/cron.weekly/update-pciids.sh << "EOF" &&
#!/bin/sh
/usr/sbin/update-pciids
EOF
chmod 754 $PKG_DEST/etc/cron.weekly/update-pciids.sh
}
|