* upgrade some broken packages * correct some broken urls/checksums * use secure urls where possible * use stable url for ncurses * some whitespace fixes Remaining md5sums either didn't download or didn't pass checksum tests.
133 lines
4.3 KiB
Bash
133 lines
4.3 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
# Contributor: Renato Silva <br.renatosilva@gmail.com>
|
|
|
|
pkgbase="sqlite"
|
|
pkgname=('sqlite' 'libsqlite' 'libsqlite-devel' 'sqlite-doc')
|
|
_amalgamationver=3100000
|
|
_docver=${_amalgamationver}
|
|
pkgver=3.10.0.0
|
|
pkgrel=1
|
|
pkgdesc="A C library that implements an SQL database engine"
|
|
arch=('i686' 'x86_64')
|
|
license=(PublicDomain)
|
|
url="https://www.sqlite.org/"
|
|
depends=('libreadline' 'icu' 'zlib')
|
|
makedepends=('libreadline-devel' 'icu-devel' 'zlib-devel')
|
|
source=( # tarball containing the amalgamation for SQLite >= 3.7.5 together with a configure script and makefile for building it; includes now also the Tcl Extension Architecture (TEA)
|
|
https://www.sqlite.org/2016/sqlite-autoconf-${_amalgamationver}.tar.gz
|
|
https://www.sqlite.org/2016/sqlite-doc-${_docver}.zip
|
|
LICENSE
|
|
'sqlite-3.8.0.1-msys2.patch'
|
|
'sqlite3-3.10.0-1.src.patch'
|
|
'sqlite3-cygwin-msys.patch')
|
|
options=('!libtool' '!emptydirs' '!debug' 'strip')
|
|
sha256sums=('43cc292d70711fa7580250c8a1cd7c64813a4a0a479dbd502cce5f10b5d91042'
|
|
'40af646d8c2109e5a15b1787e53524ed16c8e0d1705dda5f005b6186f18c2f2a'
|
|
'1e188e0cf2088da923bff80c76a9f13b7028d4688d2d49cdb10562718068ee98'
|
|
'f2297a0ac50d9671cd2488e5cf17a60f2cfac268617626c89067fa4695bf47cd'
|
|
'714d0d253446f70d0c9e4fb3556e486c802a2d24d6b7f7532aebc86494eb7dc7'
|
|
'42bb44129a5dc7c23601911fc05e445b933b723e955636f8186e3077a77d1ba6')
|
|
|
|
prepare() {
|
|
cd "${srcdir}"/sqlite-autoconf-${_amalgamationver}
|
|
|
|
patch -p2 -i ${srcdir}/sqlite3-3.10.0-1.src.patch
|
|
patch -p1 -i ${srcdir}/sqlite3-cygwin-msys.patch
|
|
patch -p1 -i ${srcdir}/sqlite-3.8.0.1-msys2.patch
|
|
|
|
autoreconf -fi
|
|
}
|
|
|
|
build() {
|
|
export CPPFLAGS="$CPPFLAGS \
|
|
-DHAVE_MALLOC_H \
|
|
-DHAVE_MALLOC_USABLE_SIZE \
|
|
-DSQLITE_ENABLE_DBSTAT_VTAB=1 \
|
|
-DSQLITE_ENABLE_STAT4=1 \
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
|
|
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 \
|
|
-DSQLITE_OMIT_LOOKASIDE \
|
|
-DSQLITE_OS_UNIX=1 \
|
|
-DSQLITE_OS_WIN=1 \
|
|
-DSQLITE_SECURE_DELETE \
|
|
-DSQLITE_SOUNDEX=1 \
|
|
-DSQLITE_TEMP_STORE=1 \
|
|
-DSQLITE_USE_FCNTL_TRACE=1 \
|
|
-DUSE_SYSTEM_SQLITE=1"
|
|
|
|
cd "${srcdir}"/sqlite-autoconf-$_amalgamationver
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--build=${CHOST} \
|
|
--enable-shared \
|
|
--enable-static
|
|
|
|
make
|
|
make DESTDIR=${srcdir}/dest install
|
|
}
|
|
|
|
_install_license() {
|
|
install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|
|
package_sqlite() {
|
|
pkgdesc="A C library that implements an SQL database engine"
|
|
depends=('libreadline' 'libsqlite')
|
|
provides=("sqlite3=${pkgver}")
|
|
replaces=("sqlite3")
|
|
|
|
mkdir -p ${pkgdir}/usr/bin
|
|
cp -f ${srcdir}/dest/usr/bin/*.exe ${pkgdir}/usr/bin/
|
|
cp -rf ${srcdir}/dest/usr/share ${pkgdir}/usr/
|
|
_install_license
|
|
}
|
|
|
|
package_libsqlite() {
|
|
pkgdesc="Sqlite3 library"
|
|
groups=('libraries')
|
|
|
|
mkdir -p ${pkgdir}/usr/bin
|
|
cp -f ${srcdir}/dest/usr/bin/*.dll ${pkgdir}/usr/bin/
|
|
_install_license
|
|
}
|
|
|
|
package_libsqlite-devel() {
|
|
pkgdesc="Sqlite3 headers and libraries"
|
|
groups=('development')
|
|
depends=("libsqlite=${pkgver}")
|
|
options+=('staticlibs')
|
|
|
|
mkdir -p ${pkgdir}/usr
|
|
cp -rf ${srcdir}/dest/usr/include ${pkgdir}/usr/
|
|
cp -rf ${srcdir}/dest/usr/lib ${pkgdir}/usr/
|
|
_install_license
|
|
}
|
|
|
|
package_sqlite-doc() {
|
|
pkgdesc="Most of the static HTML files that comprise this website, including all of the SQL Syntax and the C/C++ interface specs and other miscellaneous documentation"
|
|
#arch=('any') - not yet supported
|
|
provides=("sqlite3-doc=$pkgver")
|
|
replaces=("sqlite3-doc")
|
|
|
|
#cd ${srcdir}/sqlite-doc-${_amalgamationver}
|
|
cd ${srcdir}/sqlite-doc-${_docver}
|
|
mkdir -p ${pkgdir}/usr/share/doc/${pkgbase}
|
|
cp -R * ${pkgdir}/usr/share/doc/${pkgbase}/
|
|
|
|
# fix permissions and remove obsolete files; https://bugs.archlinux.org/task/24605
|
|
find ${pkgdir} -type f -perm 755 -exec ls -lha {} \;
|
|
find ${pkgdir} -type f -perm 755 -exec chmod 644 {} \;
|
|
|
|
find ${pkgdir} -type f -name '*~' -exec ls -lha {} \;
|
|
find ${pkgdir} -type d -name '*~' -exec ls -lha {} \;
|
|
find ${pkgdir} -name '*~' -exec rm -f {} \;
|
|
|
|
find ${pkgdir} -type f -name '.~*' -exec ls -lha {} \; # /build/pkg/sqlite-doc/usr/share/doc/sqlite/images/fileformat/.~lock.indexpage.odg#
|
|
find ${pkgdir} -type d -name '.~*' -exec ls -lha {} \;
|
|
find ${pkgdir} -name '.~*' -exec rm -f {} \;
|
|
|
|
_install_license
|
|
}
|