datadir="/usr/share"; \ if [ "${datadir#/usr}" != "$datadir" ]; then \ datadir="\${prefix}${datadir#/usr}"; \ fi; \ sed -e 's|@prefix@|/usr|g' \ -e "s|@datadir@|$datadir|g" \ -e 's|@pkgdatadir@|${datadir}/hwdata|g' \ -e 's|@VERSION@|0.393|g' \ -e 's|@NAME@|hwdata|g' \ hwdata.pc.in > hwdata.pc mkdir -p -m 755 /build/hwdata/pkg/hwdata/usr/share/hwdata for foo in pci.ids usb.ids oui.txt iab.txt pnp.ids ; do \ install -m 644 $foo /build/hwdata/pkg/hwdata/usr/share/hwdata ;\ done mkdir -p -m 755 /build/hwdata/pkg/hwdata/usr/share/pkgconfig install -m 644 hwdata.pc /build/hwdata/pkg/hwdata/usr/share/pkgconfig/