void-packages/srcpkgs/freetds/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc 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

36 lines
997 B
Bash

# Template file for 'freetds'
pkgname=freetds
version=1.1.26
revision=2
build_style=gnu-configure
configure_args="--sysconfdir=/etc/freetds --with-unixodbc=${XBPS_CROSS_BASE}/usr"
hostmakedepends="pkg-config"
makedepends="readline-devel unixodbc-devel"
depends="unixodbc"
short_desc="Open source implementation of the Tabular Data Stream protocol"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="LGPL-2.0-or-later"
homepage="https://www.freetds.org/"
distfiles="https://www.freetds.org/files/stable/freetds-${version}.tar.gz"
checksum=a2134ff1852003c0aeed82bd5f7842233ff287c3a14252b84d2653983aff7da1
conf_files="/etc/freetds/freetds.conf
/etc/freetds/locales.conf
/etc/freetds/pool.conf"
freetds-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/include
}
}
freetds-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/doc
}
}