123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- set -e
- program=sqlite
- version=3370200
- release=1
- pkgcategory=db
- tarname=${program}-autoconf-${version}.tar.gz
- fetch=https://sqlite.org/2020/$tarname
- description="
- SQlite is a C-language library that implements a SQL database engine.
- The sqlite package is a software library that implements a
- self-contained, serverless, zero-configuration, transactional
- SQL database engine.
- "
- homepage=https://www.sqlite.org
- license="Public Domain"
- docs="README.txt"
- docsdir="${docdir}/${program}-${version}"
- srcdir=${program}-autoconf-${version}
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --build="$(gcc -dumpmachine)" \
- --enable-fts5 \
- CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS \
- -DSQLITE_ENABLE_FTS3=1 \
- -DSQLITE_ENABLE_FTS4=1 \
- -DSQLITE_ENABLE_COLUMN_METADATA=1 \
- -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
- -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
- -DSQLITE_SECURE_DELETE=1 \
- -DSQLITE_ENABLE_FTS3_TOKENIZER=1"
- make -j${jobs} V=1 && make -j${jobs} check
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- cd tea
- ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args --libdir=/usr/lib${libSuffix}
- make -j${jobs} && make -j${jobs} DESTDIR="$destdir" install
- cd ..
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|