```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
887 B
Bash
30 lines
887 B
Bash
# Template file for 'lxpanel'
|
|
pkgname=lxpanel
|
|
version=0.10.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-gtk3"
|
|
hostmakedepends="pkg-config intltool"
|
|
makedepends="alsa-lib-devel gtk+3-devel menu-cache-devel libwnck-devel libcurl-devel
|
|
wireless_tools-devel lxmenu-data libxml2-devel libfm-gtk+3-devel libfm-extra-devel
|
|
libkeybinder3-devel"
|
|
depends="lxmenu-data"
|
|
short_desc="LXDE Standard panel"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://lxde.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
|
|
checksum=1e318f57d7e36b61c23a504d03d2430c78dad142c1804451061f1b3ea5441ee8
|
|
|
|
lib32disabled=yes
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
lxpanel-devel_package() {
|
|
depends="menu-cache-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|