765e304c4b
```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 ```
35 lines
963 B
Bash
35 lines
963 B
Bash
# Template file for 'mimic'
|
|
pkgname=mimic
|
|
version=1.3.0.1
|
|
revision=1
|
|
wrksrc="${pkgname}1-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-shared --enable-static"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="alsa-lib-devel icu-devel pcre2-devel"
|
|
short_desc="Mycroft's lightweight Text-to-speech engine"
|
|
maintainer="Rubén Santos <kojicomics@cocaine.ninja>"
|
|
license="custom: permissive BSD-like"
|
|
homepage="https://github.com/MycroftAI/mimic"
|
|
changelog="https://github.com/MycroftAI/mimic1/releases"
|
|
distfiles="https://github.com/MycroftAI/mimic/archive/${version}.tar.gz"
|
|
checksum=9041f5c7d3720899c90c890ada179c92c3b542b90bb655c247e4a4835df79249
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
mimic-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|