blob: 9ae5311bcd40f34d2e5e827f6eefbc9dbf373421 (
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="musl 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
}
|