#!/bin/bash

cd /tmp

wget https://fukuchi.org/works/qrencode/qrencode-4.0.2.tar.gz
wget http://prdownloads.sourceforge.net/libpng/libpng-1.6.37.tar.gz

tar -zxvf qrencode-4.0.2.tar.gz
tar -zxvf libpng-1.6.37.tar.gz

cd /tmp/libpng-1.6.37
./configure --prefix=/opt/thirdlane/perl_lib/local/usr
make
make install

cd /tmp/qrencode-4.0.2
PKG_CONFIG_PATH=/opt/thirdlane/perl_lib/local/usr/lib/pkgconfig ./configure --prefix=/opt/thirdlane/perl_lib/local/usr
make
make install
