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 ```
29 lines
771 B
Bash
29 lines
771 B
Bash
# Template file for 'libffi'
|
|
pkgname=libffi
|
|
version=3.3
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--includedir=/usr/include --disable-multi-os-directory --with-pic"
|
|
checkdepends="dejagnu"
|
|
short_desc="Library supporting Foreign Function Interfaces"
|
|
maintainer="q66 <daniel@octaforge.org>"
|
|
license="MIT"
|
|
homepage="http://sourceware.org/libffi"
|
|
distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libffi-devel_package() {
|
|
depends="libffi>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share
|
|
}
|
|
}
|