a03d116397
```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
909 B
Bash
29 lines
909 B
Bash
# Template file for 'emerald'
|
|
pkgname=emerald
|
|
version=0.8.18
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="automake intltool libtool pkg-config libxslt glib-devel gettext-devel"
|
|
makedepends="compiz-core-devel gettext-devel libwnck-devel"
|
|
short_desc="Compiz Reloaded native window decorator"
|
|
maintainer="CoolOhm <micvlas@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/compiz-reloaded"
|
|
distfiles="https://github.com/compiz-reloaded/emerald/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=53112b557c0d726ad75450b69df1649412ab5fcdf6c0827e383889f58bf437b1
|
|
|
|
pre_configure() {
|
|
mkdir -p m4
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
emerald-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|