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 ```
30 lines
1,008 B
Bash
30 lines
1,008 B
Bash
# Template file for 'okteta'
|
|
pkgname=okteta
|
|
reverts="4.14.3_1"
|
|
version=0.26.6
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules gettext python qt5-qmake qt5-host-tools
|
|
kdoctools kconfig kcoreaddons kparts"
|
|
makedepends="qt5-devel qt5-script-devel qca-qt5-devel kbookmarks-devel
|
|
kcodecs-devel kcompletion-devel kconfigwidgets-devel kcrash-devel
|
|
kcmutils-devel knewstuff-devel kparts-devel"
|
|
checkdepends="AppStream"
|
|
short_desc="Hexadecimal editor for binary files"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://apps.kde.org/okteta/"
|
|
distfiles="${KDE_SITE}/okteta/${version}/src/okteta-${version}.tar.xz"
|
|
checksum=c569cd5b55503e46df1a5b5c9162b08888c426aa52c6f3f2f926c658bee0144c
|
|
|
|
okteta-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/qt5/mkspecs
|
|
}
|
|
}
|