861ac185a6
```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 ```
34 lines
865 B
Bash
34 lines
865 B
Bash
# Template file for 'libucl'
|
|
pkgname=libucl
|
|
version=0.8.1
|
|
revision=6
|
|
build_style=gnu-configure
|
|
configure_args="--enable-urls --enable-signatures"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libcurl-devel"
|
|
short_desc="Universal configuration library parser"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/vstakhov/libucl"
|
|
distfiles="https://github.com/vstakhov/libucl/archive/${version}.tar.gz"
|
|
checksum=a6397e179672f0e8171a0f9a2cfc37e01432b357fd748b13f4394436689d24ef
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING LICENSE
|
|
}
|
|
|
|
libucl-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
|
|
vmove usr/share
|
|
}
|
|
}
|