build-libraw.sh 642 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. set -e
  3. LOCK=$(jq -c '.packages[] | select(.name == "libraw")' build-lock.json)
  4. LIBRAW_VERSION=${LIBRAW_VERSION:=$(echo $LOCK | jq -r '.version')}
  5. LIBRAW_SHA256=${LIBRAW_SHA256:=$(echo $LOCK | jq -r '.sha256')}
  6. echo "$LIBRAW_SHA256 $LIBRAW_VERSION.tar.gz" > libraw.sha256
  7. mkdir -p libraw
  8. wget -nv https://github.com/libraw/libraw/archive/${LIBRAW_VERSION}.tar.gz
  9. sha256sum -c libraw.sha256
  10. tar -xvf ${LIBRAW_VERSION}.tar.gz -C libraw --strip-components=1
  11. rm ${LIBRAW_VERSION}.tar.gz
  12. rm libraw.sha256
  13. cd libraw
  14. autoreconf --install
  15. ./configure
  16. make -j$(nproc)
  17. make install
  18. cd .. && rm -rf libraw
  19. ldconfig /usr/local/lib