1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/jimtcl/APKBUILD
2021-07-31 20:55:50 +02:00

71 lines
1.6 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=jimtcl
pkgver=0.80
pkgrel=0
pkgdesc="An open-source, small footprint implementation of Tcl"
url="https://github.com/msteveb/jimtcl"
arch="all"
license="BSD-2-Clause"
makedepends="
libexecinfo-dev
openssl-dev
readline-dev
sqlite-dev
zlib-dev
"
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
"
prepare() {
default_prepare
# tty tests fail on builders - no tty available there.
rm tests/tty.test
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--docdir=/usr/share/doc/$pkgname \
--full \
--with-mod=sqlite3,readline,rlprompt
make
}
check() {
make check
}
package() {
make install DESTDIR="$pkgdir"
}
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
"