aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-02-16 14:20:03 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-02-16 17:05:30 -0300
commit36233eccb51bfeb10849dad83453aa2af49d451a (patch)
tree97e926eb95ce4b53ed882b68212aaf611c5f9f3d
parent640c8544ff3a49ed71d51bc9fe922d96c0193190 (diff)
downloadaports-36233eccb51bfeb10849dad83453aa2af49d451a.tar.bz2
aports-36233eccb51bfeb10849dad83453aa2af49d451a.tar.xz
main/sqlite: add -tcl subpackage
fixes #6608
-rw-r--r--main/sqlite/APKBUILD27
1 files changed, 23 insertions, 4 deletions
diff --git a/main/sqlite/APKBUILD b/main/sqlite/APKBUILD
index 4f40aab20d..8c892a23ca 100644
--- a/main/sqlite/APKBUILD
+++ b/main/sqlite/APKBUILD
@@ -2,13 +2,13 @@
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
pkgname=sqlite
pkgver=3.31.1
-pkgrel=0
+pkgrel=1
pkgdesc="C library that implements an SQL database engine"
url="https://www.sqlite.org/"
arch="all"
license="Public-Domain"
-makedepends="readline-dev"
-subpackages="$pkgname-static $pkgname-doc $pkgname-dev $pkgname-libs"
+makedepends="readline-dev tcl-dev libtool autoconf automake"
+subpackages="$pkgname-static $pkgname-dev $pkgname-tcl:_tcl $pkgname-libs $pkgname-doc"
# compute _ver
_a=${pkgver%%.*}
@@ -27,7 +27,7 @@ _ver=${_a}${_b}${_c}${_d}
# these variables depend on _ver being set
builddir="$srcdir/$pkgname-autoconf-$_ver"
-source="https://www.sqlite.org/2020/$pkgname-autoconf-$_ver.tar.gz
+source="https://www.sqlite.org/2020/sqlite-autoconf-$_ver.tar.gz
license.txt
"
@@ -66,11 +66,22 @@ build() {
--enable-dynamic-extensions \
--enable-fts3
+ cd tea
+ ./configure \
+ --build="$CBUILD" \
+ --host="$CHOST" \
+ --prefix=/usr \
+ --with-system-sqlite \
+ --enable-threads
+ cd "$builddir"
+
+
# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make
+ make -C tea
}
check() {
@@ -79,6 +90,7 @@ check() {
package() {
make DESTDIR="$pkgdir" install
+ make -C tea DESTDIR="$pkgdir" install
install -Dm0644 sqlite3.1 \
"$pkgdir"/usr/share/man/man1/sqlite3.1
@@ -100,5 +112,12 @@ static() {
mv "$pkgdir"/usr/lib/lib*.a "$subpkgdir"/usr/lib/
}
+_tcl() {
+ pkgdesc="sqlite Tcl Extension Architecture (TEA)"
+
+ mkdir -p "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/sqlite$pkgver "$subpkgdir"/usr/lib/
+}
+
sha512sums="d85250ba5f78f0c918880f663741709aba662192f04888b2324a0df17affdf5b8540e8428c6c7315119806e7adad758ea281c9b403c0ad94ac6a9bd1b93fd617 sqlite-autoconf-3310100.tar.gz
5bde14bec5bf18cc686b8b90a8b2324c8c6600bca1ae56431a795bb34b8b5ae85527143f3b5f0c845c776bce60eaa537624104cefc3a47b3820d43083f40c6e9 license.txt"