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 ```
23 lines
709 B
Bash
23 lines
709 B
Bash
# Template file for 'libieee1284'
|
|
pkgname=libieee1284
|
|
version=0.2.11
|
|
revision=4
|
|
archs="i686* x86_64* ppc64*"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --without-python"
|
|
short_desc="A library to query devices connected in parallel port"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://cyberelk.net/tim/libieee1284"
|
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.bz2"
|
|
checksum=7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a
|
|
|
|
libieee1284-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|