Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/sqlite/sqlite-3.32.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15130 - (hide annotations) (download)
Fri Aug 7 07:27:32 2020 UTC (3 years, 9 months ago) by niro
File size: 1591 byte(s)
-release branches/alx07x-stable
1 niro 13920 # $Id$
2    
3     PNAME="sqlite"
4     PVER="3.32.3"
5     PBUILD="r1"
6    
7     PCAT="dev-db"
8    
9     DESCRIPTION="SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine."
10     HOMEPAGE="http://www.sqlite.org/"
11    
12     DEPEND=">= virtual/glibc"
13    
14     # helper function
15     sqlite_upstream_pver()
16     {
17     local pver="$1"
18     local count=0
19     local i
20    
21     for i in $(echo ${pver//./\ })
22     do
23     if [[ ${i} -lt 10 ]] && [[ ${count} -gt 0 ]]
24     then
25     echo -n "0${i}"
26     else
27     echo -n "${i}"
28     fi
29     (( count++))
30     done
31    
32     # fill up missing zeros if needed
33     if [[ ${count} -lt 4 ]]
34     then
35     for (( i=4-count; i>0; i--))
36     do
37     echo -n "00"
38     done
39     fi
40    
41     # crlf
42     echo
43     }
44    
45     SRCFILE="${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER}).tar.gz" # a special srcfile is needed to build without tcl
46     SRCDIR="${BUILDDIR}/${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER})"
47    
48     ALX_PKG_KEEP="usr/bin usr/$(mlibdir)/*.so.*"
49     sminclude multilib mbuild alx-split
50    
51     SRC_URI=(
52 niro 13921 https://www.sqlite.org/2020/${SRCFILE}
53 niro 13920 mirror://${PNAME}/${SRCFILE}
54     )
55    
56 niro 13922 #UP2DATE="updatecmd https://www.sqlite.org | grep 'Latest Release' | sed -n 's/.*Version \(.*\)\ (.*/\1/;$ p'"
57     UP2DATE="updatecmd https://www.sqlite.org | grep 'Version' | sed -n 's/.*Version \(.*\)\ (.*/\1/;$ p'"
58 niro 13920
59     src_compile()
60     {
61     # required flags by firefox
62     export CFLAGS+=" -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
63    
64     mconfigure \
65     --enable-load-extension \
66     --disable-readline \
67     --enable-cross-thread-connections \
68     --enable-threadsafe \
69     --disable-tcl \
70     --disable-debug \
71     || die
72    
73     mmake || die
74     }