void-packages/srcpkgs/plymouth/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```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
```
2021-06-20 13:17:29 +07:00

55 lines
1.6 KiB
Bash

# Template file for 'plymouth'
pkgname=plymouth
version=0.9.5
revision=1
build_style=gnu-configure
configure_args="--with-system-root-install=no \
--without-rhgb-compat-link --enable-systemd-integration=no \
$(vopt_enable gtk3 gtk) $(vopt_enable pango) \
--with-logo=/usr/share/void-artwork/void-transparent.png --localstatedir=/ \
--disable-documentation"
conf_files="/etc/plymouth/plymouthd.conf"
hostmakedepends="pkg-config gettext"
makedepends="libdrm-devel libpng-devel void-artwork
$(vopt_if gtk3 gtk+3-devel) $(vopt_if pango pango-devel)"
depends="plymouth-data>=0"
short_desc="Graphical boot animation and logger"
maintainer="William OD <obirik2005@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.freedesktop.org/wiki/Software/Plymouth/"
distfiles="${FREEDESKTOP_SITE}/plymouth/releases/$pkgname-$version.tar.xz"
checksum=ecae257f351d098340542a5bc06de029404c24dcee87e6ebb2abd5ef117fce86
build_options="gtk3 pango"
build_options_default="gtk3 pango"
desc_option_pango="Enable building with Pango (for password/question prompts)"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" musl-rpmatch-devel"
LDFLAGS="-lrpmatch"
;;
esac
post_install() {
vinstall ${FILESDIR}/71-plymouth-seat.rules 644 usr/lib/udev/rules.d/
}
plymouth-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/*.la
vmove usr/lib/pkgconfig
vmove usr/lib/plymouth/*.la
}
}
plymouth-data_package() {
short_desc+=" - data files"
depends="void-artwork"
pkg_install() {
vmove usr/share/plymouth/themes
}
}