```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 ```
31 lines
749 B
Bash
31 lines
749 B
Bash
# Template file for 'libmill'
|
|
pkgname=libmill
|
|
version=1.18
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool"
|
|
short_desc="Go-style concurrency in C"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://libmill.org/"
|
|
distfiles="https://github.com/sustrik/libmill/archive/${version}.tar.gz"
|
|
checksum=ff6903cd05f45c4cc050921d03201a93d2723ab59c480eb924f8f1ca8c6f0614
|
|
|
|
pre_configure() {
|
|
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
|
|
autoreconf -fi
|
|
}
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
libmill-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|