Skip to content

Commit 73e478e

Browse files
committed
Merge pull request lfdversluis#4 from wtud/cookbook
Downgrade sqlite3 and apsw to 3.6.22(-r1) Tested and works!
2 parents f8875a2 + 9eebd3d commit 73e478e

File tree

3 files changed

+79680
-116585
lines changed

3 files changed

+79680
-116585
lines changed

recipes/apsw/recipe.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22

33

44
# version of your package
5-
VERSION_apsw=${VERSION_apsw:-3.8.4.1-r1}
5+
VERSION_apsw=${VERSION_apsw:-3.6.22-r1}
66

77

88
# dependencies of this recipe
99
DEPS_apsw=(python)
1010

1111

1212
# url of the package
13-
URL_apsw=https://github.com/rogerbinns/apsw/releases/download/3.8.4.1-r1/apsw-3.8.4.1-r1.zip
14-
13+
URL_apsw=https://github.com/rogerbinns/apsw/archive/3.6.22-r1.tar.gz
1514

1615
# md5 of the package
17-
MD5_apsw=5ad3098489576929b90f4215eb5b2621
18-
16+
MD5_apsw=3d7dbf82d10d5fd20c894945452871b8
1917

2018
# default build path
2119
BUILD_apsw=$BUILD_PATH/apsw/$(get_directory $URL_apsw)
@@ -35,7 +33,9 @@ function prebuild_apsw() {
3533
if [ ! -d ${BUILD_apsw}/sqlite3 ]; then
3634
echo "fetching sqlite..."
3735
# using /usr/bin/python for this
38-
python setup.py fetch --sqlite --version=3.8.4.1 --missing-checksum-ok
36+
python setup.py fetch --sqlite --version=3.6.22 --missing-checksum-ok
37+
# use included sqlite3 source files, because they somehow work
38+
cp $BUILD_PATH/../src/jni/sqlite3/sqlite3.* sqlite3/
3939
fi
4040

4141

@@ -99,7 +99,7 @@ function build_apsw() {
9999

100100
echo "building apsw in `pwd`..."
101101
# now we can build; enable the FTS4 sqlite extension for full-text search
102-
try ${HOSTPYTHON} setup.py build --enable=fts4
102+
try ${HOSTPYTHON} setup.py build --enable=fts3
103103
echo "installing apsw..."
104104
try ${HOSTPYTHON} setup.py install
105105
echo "done with apsw."

0 commit comments

Comments
 (0)