Commit e7fe0741 authored by Chaoting Liu's avatar Chaoting Liu

sqlite: update to 3.23.1, strip suffix

parent dfa6e59a
pkgbase="sqlite3"
pkgname=('sqlite3' 'sqlite3-tcl' 'sqlite3-doc' 'sqlite3-analyzer')
_srcver=3200100
pkgbase="sqlite"
pkgname=('sqlite' 'sqlite-tcl' 'sqlite-doc' 'sqlite-analyzer')
_srcver=3230100
_docver=${_srcver}
pkgver=3.20.1
pkgrel=4
pkgver=3.23.1
pkgrel=1
pkgdesc="A C library that implements an SQL database engine"
arch=('x86_64')
license=('custom:Public Domain')
url="http://www.sqlite.org/"
makedepends=('tcl' 'readline')
source=(https://www.sqlite.org/2017/sqlite-src-${_srcver}.zip
https://www.sqlite.org/2017/sqlite-doc-${_docver}.zip
source=(https://www.sqlite.org/2018/sqlite-src-${_srcver}.zip
https://www.sqlite.org/2018/sqlite-doc-${_docver}.zip
license.txt)
options=('!emptydirs' '!makeflags') # json extensions breaks parallel build
sha1sums=('808448837323b4ef9c0771af89d06dca5f0832dd'
'5c674754629392003fa5f7f4d2bc533d571040b1'
sha1sums=('90bea4e46a01e9c27356b19c3150a8bf146c09fc'
'a7bf3d789f2fc4e74c2eca01f9aa21124e705222'
'f34f6daa4ab3073d74e774aad21d66878cf26853')
prepare() {
......@@ -45,11 +45,13 @@ build() {
make showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
}
package_sqlite3() {
package_sqlite() {
pkgdesc="A C library that implements an SQL database engine"
depends=('readline')
provides=("${pkgname%%3}=${pkgver}")
provides=("sqlite3=${pkgver}")
conflicts=("sqlite3<$pkgver")
replaces=("sqlite3<$pkgver")
cd sqlite-src-$_srcver
make DESTDIR=${pkgdir} install
......@@ -68,11 +70,15 @@ package_sqlite3() {
mv $pkgdir/usr/lib/sqlite* $srcdir/tcl
}
package_sqlite3-tcl() {
package_sqlite-tcl() {
pkgdesc="sqlite Tcl Extension Architecture (TEA)"
pkgdesc="Sqlite Tcl Extension Architecture (TEA)"
depends=('sqlite')
provides=("${pkgname/3/}=${pkgver}")
provides=("sqlite3-tcl=${pkgver}")
conflicts=("sqlite3-tcl<$pkgver")
replaces=("sqlite3-tcl<$pkgver")
install -m755 -d ${pkgdir}/usr/lib
mv $srcdir/tcl/* ${pkgdir}/usr/lib
......@@ -86,22 +92,26 @@ package_sqlite3-tcl() {
ln -sf /usr/share/licenses/${pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
}
package_sqlite3-analyzer() {
package_sqlite-analyzer() {
pkgdesc="An analysis program for sqlite3 database files"
depends=('sqlite' 'tcl')
provides=("${pkgname/3/}=${pkgver}")
provides=("sqlite3-analyzer=${pkgver}")
conflicts=("sqlite3-analyzer<${pkgver}")
replaces=("sqlite3-analyzer<${pkgver}")
cd sqlite-src-$_srcver
install -m755 -d ${pkgdir}/usr/bin
install -m755 sqlite3_analyzer ${pkgdir}/usr/bin/
}
package_sqlite3-doc() {
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}")
conflicts=("sqlite3-doc<${pkgver}")
replaces=("sqlite3-doc<${pkgver}")
cd sqlite-doc-${_docver}
mkdir -p ${pkgdir}/usr/share/doc/${pkgbase}
cp -R * ${pkgdir}/usr/share/doc/${pkgbase}/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment