39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'jimtcl'
|
|
pkgname=jimtcl
|
|
# keep in sync with _jimtcl_version in openocd
|
|
version=0.81
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--full --shared --with-ext=sqlite3 --docdir=/usr/share/doc/${pkgname}"
|
|
short_desc="Small footprint implementation of the Tcl programming language"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
makedepends="sqlite-devel"
|
|
license="BSD"
|
|
homepage="http://jim.tcl.tk/"
|
|
distfiles="https://github.com/msteveb/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=ab7eb3680ba0d16f4a9eb1e05b7fcbb7d23438e25185462c55cd032a1954a985
|
|
|
|
post_extract() {
|
|
sed -i '/Unknown option/s/error/notice/' autosetup/autosetup
|
|
sed -i 's,/doc,/share/doc,g' Makefile.in
|
|
}
|
|
pre_configure() {
|
|
configure_args=${configure_args/--host/--ignore-first-host}
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE
|
|
sed -i "s/$XBPS_CROSS_TRIPLET-//g" $DESTDIR/usr/bin/build-jim-ext
|
|
ln -s libjim.so.* ${DESTDIR}/usr/lib/libjim.so
|
|
}
|
|
|
|
jimtcl-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" -- development files"
|
|
pkg_install() {
|
|
vmove usr/bin/build-jim-ext
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|