| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | if [scip-shell system . . `[`. -z $PREFIX ] |
| 4 | then PREFIX=/mingwscip-shell filesystem . . `/mingw`. |
| 5 | fi |
| 6 | |
| 7 | mkdirscip-shell system . . mkdir. -p $PREFIX/bin |
| 8 | mkdirscip-shell system . . mkdir. -p $PREFIX/include |
| 9 | mkdirscip-shell system . . mkdir. -p $PREFIX/lib |
| 10 | mkdirscip-shell system . . mkdir. -p $PREFIX/lib/pkgconfig |
| 11 | |
| 12 | cpscip-shell system . . cp. -f ../bin/libusb0.dll $PREFIX/bin |
| 13 | cpscip-shell system . . cp. -f ../bin/libusb0*.sys $PREFIX/bin |
| 14 | cpscip-shell system . . cp. -f ../include/usb.h $PREFIX/include |
| 15 | cpscip-shell system . . cp. -f ../lib/gcc/libusb.a $PREFIX/lib |
| 16 | |
| 17 | sedscip-shell system . . sed. -e 's!/mingw!'"$PREFIX"'!g' libusb.pc >$PREFIX/lib/pkgconfig/libusb.pc |
| 18 | sedscip-shell system . . sed. -e 's!/mingw!'"$PREFIX"'!g' libusb-config >$PREFIX/bin/libusb-config |
| 19 | |
| 20 | chmodscip-shell system . . chmod. +x $PREFIX/bin/libusb-config |