Files
Arch-R/packages/sysutils/pciutils/build
Stephan Raue 380f16647c pciutils:
- use an pre-cached version of pci.ids file if we dont have an internet connection
2010-03-11 06:07:02 +01:00

26 lines
445 B
Bash
Executable File

#!/bin/sh
. config/options
$SCRIPTS/build toolchain
export CFLAGS="-Os"
PKG_DIR=`find $PACKAGES -type d -name $1`
cd $PKG_BUILD
make OPT="$TARGET_CFLAGS" \
CROSS_COMPILE=${TARGET_PREFIX} \
HOST=$TARGET_ARCH-linux \
IDSDIR="/usr/share" \
ZLIB=no \
DNS=no \
PREFIX=/usr \
make PREFIX=/usr \
IDSDIR="/usr/share" \
DESTDIR=$SYSROOT_PREFIX install-lib
./update-pciids.sh || cp $ROOT/$PKG_DIR/pci.ids .