source: common/blfs-tool-deps/911-sqlite@ 743414b

2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 743414b was 7072e1f, checked in by Thomas Pegg <thomasp@…>, 13 years ago

Commit Pierre Labastie's patch for including package management support in jhalfs. NOTE: Package management is by default disabled.

  • Property mode set to 100644
File size: 999 bytes
Line 
1#!/bin/bash
2
3# $Id:$
4
5set -e
6cd $PKGDIR
7
8CFLAGS="-g -O2 -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" \
9 ./configure --prefix=/usr \
10 --enable-threadsafe \
11 --enable-readline \
12 --enable-dynamic-extensions &&
13make
14if ! [ -z $PKG_DEST ]; then
15 mkdir -pv $PKG_DEST/{lib,usr/{share/{man,doc,info},lib}}
16 ln -sv share/{man,doc,info} $PKG_DEST/usr
17 case $(uname -m) in
18 x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;;
19 esac
20fi
21make DESTDIR=$PKG_DEST install
22if ! [ -z $PKG_DEST ]; then
23 rm -fv $PKG_DEST/{,usr/}lib64
24 rm -fv $PKG_DEST/usr/{man,doc,info}
25 for dir in $PKG_DEST/usr/share/{doc,info,man}; do
26 [[ -z $(ls $dir) ]] && rmdir -v $dir
27 done
28 for dir in $PKG_DEST/usr/{lib,share}; do
29 [[ -z $(ls $dir) ]] && rmdir -v $dir
30 done
31 for dir in $PKG_DEST/{lib,usr}; do
32 [[ -z $(ls $dir) ]] && rmdir -v $dir
33 done
34 packInstall
35fi
36rm -rf $PKG_DEST
37
38exit
Note: See TracBrowser for help on using the repository browser.