ec4c2d75fa
```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 ```
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Template file for 'GConf'
|
|
pkgname=GConf
|
|
version=3.2.6
|
|
revision=11
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--without-openldap --enable-gtk --enable-defaults-service
|
|
--disable-orbit --enable-gsettings-backend --disable-static --disable-gtk-doc-html
|
|
$(vopt_enable gir introspection)"
|
|
conf_files="/etc/gconf/2/path"
|
|
hostmakedepends="pkg-config intltool gtk-doc glib-devel gobject-introspection"
|
|
makedepends="gtk+3-devel dbus-glib-devel polkit-devel libxml2-devel"
|
|
depends="dconf"
|
|
short_desc="Process-transparent configuration system"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://projects.gnome.org/gconf"
|
|
distfiles="${GNOME_SITE}/GConf/3.2/GConf-${version}.tar.xz"
|
|
checksum=1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e0cfa51a04d784c
|
|
python_version=2
|
|
make_dirs="/usr/share/gconf/schemas 0755 root root
|
|
/etc/gconf/gconf.xml.defaults 0755 root root
|
|
/etc/gconf/gconf.xml.mandatory 0755 root root
|
|
/etc/gconf/gconf.xml.system 0755 root root"
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
GConf-devel_package() {
|
|
depends="glib-devel dbus-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
vmove usr/share/sgml
|
|
vmove usr/share/aclocal
|
|
vmove usr/share/gtk-doc
|
|
# Install gconf-merge-schema
|
|
vbin ${FILESDIR}/gconf-merge-schema.sh gconf-merge-schema
|
|
}
|
|
}
|