#! /bin/bash
#
# repr.bash
# Copyright (C) 2018 Shlomi Fish <shlomif@cpan.org>
#
# Distributed under terms of the MIT license.
#
(
set -e -x
unzip sqlite-src-3260000.zip
cd sqlite-src-3260000
./configure --build=x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --enable-threadsafe --enable-load-extension --enable-fts5 TCLLIBDIR=/usr/lib64/tcl8.6/sqlite3
make
make test
) \
    2>&1 | tee -a ~/sqlite-mga7-rpm-build.txt
