# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=jimtcl pkgver=0.80 pkgrel=4 pkgdesc="An open-source, small footprint implementation of Tcl" url="https://github.com/msteveb/jimtcl" arch="all" license="BSD-2-Clause" depends_dev="openssl1.1-compat-dev" makedepends=" $depends_dev libexecinfo-dev readline-dev sqlite-dev tcl zlib-dev " options="net" # fix check with abuild rootbld subpackages="$pkgname-dbg $pkgname-readline $pkgname-sqlite3 $pkgname-dev $pkgname-doc" source="https://github.com/msteveb/jimtcl/archive/$pkgver/jimtcl-$pkgver.tar.gz tests-skip-exec2-3.2.patch fix-memory-leak.patch " prepare() { default_prepare # tty tests fail on builders - no tty available there. rm tests/tty.test cp -r "$builddir" "$builddir-static" } build() { _build --shared cd "$builddir-static" _build } _build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --docdir=/usr/share/doc/$pkgname \ --full \ --with-mod=sqlite3,readline,rlprompt \ "$@" make -j1 } check() { make check } package() { make install DESTDIR="$pkgdir" ln -s /usr/lib/libjim.so.$pkgver "$pkgdir"/usr/lib/libjim.so install -m644 "$builddir-static"/libjim.a -t "$pkgdir"/usr/lib/ } readline() { pkgdesc="Interface to readline and Tcl wrapper for Jim Tcl" depends="$pkgname=$pkgver-r$pkgrel" amove usr/lib/jim/readline.so amove usr/lib/jim/rlprompt.tcl } sqlite3() { pkgdesc="Interface to sqlite3 for Jim Tcl" depends="$pkgname=$pkgver-r$pkgrel" amove usr/lib/jim/sqlite3.so } dev() { default_dev amove usr/bin/build-jim-ext } sha512sums=" 37f14263f2101caaa632acf5e426dd7f1d6f75143875359c1daed59a039a9c64bbdf7941ce12b76bf9b209521b3967fd2b1d94a6afde7b2a8dd173d160858225 jimtcl-0.80.tar.gz e9ac362e72d4e51bf21d7d9430c330f1d77cdeeceb574607d5847404fe20d304bb0c7ab405e76b7a84d5dfa115e717a65533aab0626fd80c2535bf8beabb48cf tests-skip-exec2-3.2.patch 92010f9a0494c2c7a159530182482ac4c24f7cfd5ae8a3dae44432431767342e97f1583fa244608cebf07928276398a398c797f0910b818aa39840410533511c fix-memory-leak.patch "