nixpkgs/pkgs/tools/system/pciutils/builder.sh
Eelco Dolstra a106e7a1d7 * Use the latest pci.ids.
svn path=/nixpkgs/trunk/; revision=8047
2007-02-26 12:07:46 +00:00

19 lines
274 B
Bash

source $stdenv/setup
preBuild=preBuild
preBuild() {
bunzip2 < $pciids > pci.ids
}
postInstall=postInstall
postInstall() {
ensureDir $out/lib
ensureDir $out/include/pci
cp lib/*.h $out/include/pci
cp lib/libpci.a $out/lib
}
makeFlags="PREFIX=$out"
genericBuild