861ac185a6
```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 ```
18 lines
682 B
Bash
18 lines
682 B
Bash
# Template file for 'libpurple-steam'
|
|
|
|
pkgname="libpurple-steam"
|
|
version="1.6.1"
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libpurple-devel json-glib-devel libglib-devel nss-devel libgnome-keyring-devel"
|
|
short_desc="A Steam plugin for libpurple - uses the Steam Mobile API"
|
|
maintainer="John Regan <john@jrjrtech.com>"
|
|
license="GPL-3"
|
|
homepage="https://github.com/EionRobb/pidgin-opensteamworks"
|
|
distfiles="https://github.com/EionRobb/pidgin-opensteamworks/archive/${version}.tar.gz"
|
|
checksum=6a63248ed67f85185d32760246a22fea58e49af2d8a604abaa2cb3a3b5368a01
|
|
wrksrc="pidgin-opensteamworks-${version}"
|
|
build_wrksrc="steam-mobile"
|
|
|
|
CFLAGS="-fPIC -I."
|