```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'tcl'
|
|
pkgname=tcl
|
|
version=8.6.11
|
|
revision=1
|
|
wrksrc="tcl${version}"
|
|
build_wrksrc=unix
|
|
build_style=gnu-configure
|
|
configure_args="--enable-threads --without-tzdata --enable-man-symlinks
|
|
--disable-static --disable-rpath --with-system-sqlite
|
|
tcl_cv_strstr_unbroken=ok
|
|
tcl_cv_strtoul_unbroken=ok"
|
|
makedepends="zlib-devel sqlite-devel"
|
|
short_desc="TCL scripting language"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="TCL"
|
|
homepage="http://www.tcl.tk"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}${version}-src.tar.gz"
|
|
checksum=8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258
|
|
|
|
shlib_provides="libtcl${version%.*}.so"
|
|
|
|
post_extract() {
|
|
sed -i 's/-DSQLITE_API=MODULE_SCOPE//g' pkgs/sqlite*/Makefile.in
|
|
}
|
|
|
|
do_install() {
|
|
make INSTALL_ROOT=${DESTDIR} install install-private-headers
|
|
ln -s tclsh8.6 ${DESTDIR}/usr/bin/tclsh
|
|
vlicense ../license.terms LICENSE
|
|
}
|
|
|
|
tcl-devel_package() {
|
|
depends="tcl>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/tclConfig.sh
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|