986c0a7d5e
```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 ```
36 lines
931 B
Bash
36 lines
931 B
Bash
# Template file for 'ilmbase'
|
|
pkgname=ilmbase
|
|
reverts="2.5.2_1"
|
|
version=2.4.2
|
|
revision=2
|
|
wrksrc="openexr-${version}"
|
|
build_wrksrc=IlmBase
|
|
build_style=cmake
|
|
build_helper="qemu"
|
|
short_desc="Base libraries from ILM for OpenEXR"
|
|
maintainer="skmpz <dem.procopiou@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.openexr.com/"
|
|
distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=8e5bfd89f4ae1221f84216a163003edddf0d37b8aac4ee42b46edb55544599b9
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vsed -i Half/CMakeLists.txt \
|
|
-e "s; COMMAND ; COMMAND qemu-${XBPS_TARGET_QEMU_MACHINE}-static ;g"
|
|
fi
|
|
}
|
|
post_install() {
|
|
vlicense ../LICENSE.md
|
|
}
|
|
|
|
ilmbase-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|