Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # generic architecture script
- ARCHITECTURE=`uname -m`
- # create the '/opt/rainlendar2/lib' directory
- sudo mkdir /opt/rainlendar2/lib
- # go to '/opt/rainlendar2/lib' directory
- cd /opt/rainlendar2/lib
- # download the curl-7.23.1-2 package (stdout) | xz decompression | tar decompression (only libcurl.so* files + stripping filenames: 'usr/lib/libcurl*' -> 'libcurl*')
- curl http://arm.konnichi.com/2012/01/01/core/os/${ARCHITECTURE}/curl-7.23.1-2-${ARCHITECTURE}.pkg.tar.xz | xzcat - | sudo tar xf - --strip 2 usr/lib/libcurl.so{,.4{,.2.0}}
- # go to '/opt/rainlendar2' directory
- cd ..
- # move the binary 'rainlendar2' into 'rainlendar2.bin'
- sudo mv rainlendar2{,.bin}
- # create a 'rainlendar2' launcher with the LD_LIBRARY_PATH pointing to '/opt/rainlendar2/lib'
- echo -e '#!'"/bin/bash\n\nLD_LIBRARY_PATH=`pwd`/lib `pwd`/rainlendar2.bin\n" | sudo tee -a rainlendar2
- # add the execute permission to the 'rainlendar2'
- sudo chmod +x rainlendar2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement