void-packages/srcpkgs/giflib/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

36 lines
807 B
Bash

# Template file for 'giflib'
pkgname=giflib
version=5.2.1
revision=1
build_style=gnu-makefile
hostmakedepends="xmlto"
short_desc="Library to handle, display and manipulate GIF images"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://sourceforge.net/projects/giflib/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd
CFLAGS="-fPIC"
post_install() {
vlicense COPYING LICENSE
}
giflib-devel_package() {
depends="giflib-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}
giflib-tools_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share/man
}
}