Skip to content

Instantly share code, notes, and snippets.

@bgruening
Created February 27, 2015 22:32
Show Gist options
  • Save bgruening/e2474cd5bf508c04685d to your computer and use it in GitHub Desktop.
Save bgruening/e2474cd5bf508c04685d to your computer and use it in GitHub Desktop.
Build UCSC tools
#!/bin/sh
arch=x86_64
pkg=ucsc
version=v312
build_deps="libc6-dev zlib1g-dev libncurses5-dev libpng-dev unzip libmysqlclient-dev libssl-dev"
urls="
http://hgdownload.soe.ucsc.edu/admin/jksrc.${version}.zip
"
apt-get -qq update &&
apt-get install --no-install-recommends -y $build_deps &&
mkdir /build &&
cd /build &&
( for url in $urls; do
wget "$url" || false || exit
done ) &&
unzip jksrc.${version}.zip &&
cd kent/src/ &&
mkdir -p /bin/${arch}/ /build/dest/bin /build/dest/lib &&
make utils &&
mkdir -p /build/dest/ &&
cp /root/bin/x86_64/* /build/dest/bin/ -R &&
cp /usr/lib/libmysqlclient.so.16.0.0 /build/dest/lib/libmysqlclient.so.16 &&
cp /usr/lib/libssl.so.0.9.8 /build/dest/lib/libssl.so.0.9.8 &&
cp /usr/lib/libcrypto.so.0.9.8 /build/dest/lib/libcrypto.so.0.9.8 &&
tar zcf /host/${pkg}-${version}-Linux-x86_64.tar.gz -C /build/dest .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment