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 ```
23 lines
862 B
Bash
23 lines
862 B
Bash
# Template file for 'owncloudclient'
|
|
pkgname=owncloudclient
|
|
version=2.8.2
|
|
revision=1
|
|
wrksrc=client-${version}
|
|
build_style=cmake
|
|
configure_args="-Wno-dev -DNO_SHIBBOLETH=TRUE"
|
|
hostmakedepends="pkg-config extra-cmake-modules"
|
|
makedepends="qtkeychain-qt5-devel sqlite-devel qt5-declarative-devel
|
|
qt5-tools-devel qt5-plugin-odbc qt5-plugin-tds qt5-plugin-pgsql qt5-plugin-mysql
|
|
qt5-plugin-sqlite"
|
|
depends="qt5-plugin-sqlite qt5-svg"
|
|
conf_files="/etc/ownCloud/sync-exclude.lst"
|
|
short_desc="Connect to ownCloud servers"
|
|
maintainer="Nathan Owens <ndowens@artixlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.owncloud.org"
|
|
distfiles="https://github.com/owncloud/client/archive/v${version}.tar.gz"
|
|
checksum=aafc6044a4c6727ad747195cb90a6be8c3a5b28de50df97fa961b6b551fe6d89
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-tools-devel"
|
|
fi
|