aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqlite
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-30 20:47:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-30 20:47:46 +0000
commit02d4e2702b23b1f1e18fcc25599a6013aa93a5d2 (patch)
tree63574b846dfe2e315c3214389912aae150fa1ceb /main/sqlite
parent8f16e154db13a17662dec8176efd2b289182be98 (diff)
downloadaports-02d4e2702b23b1f1e18fcc25599a6013aa93a5d2.tar.bz2
aports-02d4e2702b23b1f1e18fcc25599a6013aa93a5d2.tar.xz
main/sqlite: split out -libs and enable readline
Diffstat (limited to 'main/sqlite')
-rw-r--r--main/sqlite/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/main/sqlite/APKBUILD b/main/sqlite/APKBUILD
index ada014d2d9..652295c0cf 100644
--- a/main/sqlite/APKBUILD
+++ b/main/sqlite/APKBUILD
@@ -16,17 +16,17 @@ esac
[ $_d -lt 10 ] && _d=0$_d
_ver=${_a}${_b}${_c}${_d}
-pkgrel=0
+pkgrel=1
pkgdesc="A C library that implements an SQL database engine"
url="http://www.sqlite.org/"
arch="all"
license="custom"
depends=""
-makedepends="tcl"
+makedepends="tcl readline-dev"
source="http://www.sqlite.org/$pkgname-autoconf-$_ver.tar.gz
license.txt"
-subpackages="$pkgname-doc $pkgname-dev"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
_builddir="$srcdir"/$pkgname-autoconf-$_ver
prepare() {
@@ -44,7 +44,7 @@ build() {
--enable-cross-thread-connections \
--disable-static \
--disable-tcl \
- --disable-readline \
+ --enable-readline \
|| return 1
# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@@ -79,5 +79,12 @@ package() {
install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
+libs() {
+ replaces="sqlite"
+ pkgdesc="Sqlite3 library"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
+}
+
md5sums="eb7bbd258913518ad30971ea7ecb0ca9 sqlite-autoconf-3071201.tar.gz
c1cdbc5544034d9012e421e75a5e4890 license.txt"