blob: 421dbd93b833159662c810e54767dc22fe7032a2 (
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
|
#!/bin/bash
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
cat > $PKG_DEST/etc/cron.weekly/update-pciids.sh << "EOF" &&
#!/bin/bash
/usr/sbin/update-pciids
EOF
chmod 754 $PKG_DEST/etc/cron.weekly/update-pciids.sh
}
|