blob: 74393b7f3b9f834a64cda7c51c0074e146b55756 [file] [log] [blame] [edit]
# $Id$
# Maintainer: Oscar Fuentes <ofv@wanadoo.es>
# Based on Arch's PKGBUILD
_realname=tcllib
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.20
pkgrel=2
pkgdesc="Set of pure-Tcl extensions (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://core.tcl.tk/tcllib/"
license=('bsd')
depends=("${MINGW_PACKAGE_PREFIX}-tcl")
source=(https://github.com/tcltk/tcllib/archive/tcllib-${pkgver/./-}.tar.gz)
sha256sums=('c8cbc51f9d2036790e4fef034ac6fc0118fe49264d9a9efe368cac86f8ab2460')
package(){
cd ${srcdir}/tcllib-tcllib-${pkgver/./-}
tclsh installer.tcl \
-pkg-path ${pkgdir}${MINGW_PREFIX}/lib/tcllib${pkgver} \
-app-path ${pkgdir}${MINGW_PREFIX}/bin \
-nroff-path ${pkgdir}${MINGW_PREFIX}/share/man/mann \
-no-examples \
-no-html \
-no-wait \
-no-gui
mkdir -p ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/
cp license.terms ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING
rm -f $pkgdir${MINGW_PREFIX}/share/man/mann/{try,string,variable,zlib,coroutine}.n
}