修订版 | 91624c3ce4f3cd2fefbbc0bed4d49a39e349f968 (tree) |
---|---|
时间 | 2012-07-15 14:02:47 |
作者 | matsuand <matsuand@user...> |
Commiter | matsuand |
[BLFS] Added libusb-compat.
@@ -0,0 +1,48 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +. ./_blfsset.sh | |
4 | + | |
5 | +VER=0.1.4 | |
6 | +TARGET=libusb-compat-$VER | |
7 | +TARGETBALL=$TARGET.tar.bz2 | |
8 | +TARGETDIR=$TARGET | |
9 | + | |
10 | +echo Check Required... | |
11 | +./_checkRequired.sh libusb || exit 1 | |
12 | +if test "$1" == "check"; then | |
13 | + exit 0 | |
14 | +fi | |
15 | + | |
16 | +cd $SRC | |
17 | + | |
18 | +echo $TARGET | |
19 | + | |
20 | +echo \ \ Removing old directory... | |
21 | +rm -fr $TARGETDIR | |
22 | + | |
23 | +echo \ \ Extracting... | |
24 | +if ! test -f $DLD/$TARGETBALL; then | |
25 | + echo \ \ Tarball not found: $TARGETBALL && exit 1 | |
26 | +else | |
27 | + tar xf $DLD/$TARGETBALL | |
28 | +fi | |
29 | + | |
30 | +cd $TARGETDIR | |
31 | + | |
32 | +echo \ \ Configuring... | |
33 | +./configure --prefix=/usr --disable-static \ | |
34 | + 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 | |
35 | + | |
36 | +echo \ \ Making... | |
37 | +make \ | |
38 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
39 | + | |
40 | +echo \ \ Installing... | |
41 | +paco -p $TARGET 'make install' \ | |
42 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
43 | + | |
44 | +echo -n \ \ Pacoing:\ && paco $TARGET || echo none | |
45 | + | |
46 | +echo \ \ Removing directory... | |
47 | +cd .. && rm -fr $TARGETDIR | |
48 | + |