2fd8d4df94
```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 ```
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'opencollada'
|
|
pkgname=opencollada
|
|
version=1.6.68
|
|
revision=1
|
|
wrksrc="OpenCOLLADA-${version}"
|
|
build_style=cmake
|
|
configure_args="-DUSE_SHARED=TRUE"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libxml2-devel pcre-devel"
|
|
short_desc="Stream based reader and writer library for COLLADA files"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/KhronosGroup/OpenCOLLADA"
|
|
distfiles="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=d9db0c0a518aa6ac0359626f222707c6ca1b63a83cbf229d97a5999c9cde347b
|
|
|
|
CXXFLAGS="-fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
# Needs to find build/lib/libbuffer.so when cross linking
|
|
LDFLAGS="-Wl,-rpath,lib"
|
|
fi
|
|
|
|
post_install() {
|
|
# Move libraries to /usr/lib to avoid adding to /etc/ld.so.conf.d
|
|
mv ${DESTDIR}/usr/lib/opencollada/* ${DESTDIR}/usr/lib
|
|
}
|
|
|
|
opencollada-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
# usr/lib contains only unversioned *.so files
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|