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 ```
21 lines
730 B
Bash
21 lines
730 B
Bash
# Template file for 'epdfview'
|
|
pkgname=epdfview
|
|
version=0.1.8
|
|
revision=12
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gtk+-devel poppler-glib-devel"
|
|
depends="hicolor-icon-theme desktop-file-utils"
|
|
short_desc="Lightweight PDF viewer using Poppler and GTK+"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://freshmeat.sourceforge.net/projects/epdfview"
|
|
distfiles="http://anduin.linuxfromscratch.org/BLFS/epdfview/epdfview-${version}.tar.bz2"
|
|
checksum=948648ae7c9d7b3b408d738bd4f48d87375b1196cae1129d6b846a8de0f2f8f0
|
|
|
|
post_install() {
|
|
for f in 24 32 48; do
|
|
vinstall data/icon_${pkgname}-${f}.png 644 \
|
|
usr/share/icons/hicolor/${f}x${f}/apps ${pkgname}.png
|
|
done
|
|
}
|