aboutsummaryrefslogtreecommitdiff
path: root/scripts/pv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/pv.sh')
-rw-r--r--scripts/pv.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/pv.sh b/scripts/pv.sh
new file mode 100644
index 0000000..f715dc7
--- /dev/null
+++ b/scripts/pv.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+. ./.vars
+VERSION=1.6.6
+APP_NAME="pv"
+BUILD_DIR="${build_dir}/$APP_NAME-$VERSION"
+if ! [ -d "$BUILD_DIR" ] ; then
+ cd "$build_dir"
+ tar xfjv ${dist_dir}/$APP_NAME-$VERSION.tar.bz2
+fi
+cd "$BUILD_DIR"
+export CC=$BUILD_TGT-gcc
+export CFLAGS="-I$prefix/usr/include -static"
+export DESTDIR=$prefix
+export LDFLAGS="-L$prefix/usr/lib/ -static"
+rm config.log || echo ""
+make clean || echo ""
+./configure \
+ --host=$BUILD_TGT \
+ --prefix=/usr \
+ --with-sysroot=$prefix
+make -j$(nproc)
+make install