void-packages/srcpkgs/xapian-core/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: convert patches to -Np1
```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

44 lines
1.1 KiB
Bash

# Template file for 'xapian-core'
pkgname=xapian-core
version=1.4.18
revision=2
build_style=gnu-configure
configure_args="--disable-static"
makedepends="zlib-devel libuuid-devel"
short_desc="Open source search engine"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.xapian.org/"
distfiles="https://oligarchy.co.uk/xapian/${version}/${pkgname}-${version}.tar.xz"
checksum=196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77
# xapian-config needs the .la
keep_libtool_archives=yes
xapian-core-devel_package() {
depends="libxapian-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/aclocal
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove usr/lib/*.la
vmove usr/lib/*.so
vmove usr/bin/xapian-config
vmove usr/share/man/man1/xapian-config.1
}
}
xapian-core-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/doc
}
}
libxapian_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove usr/lib/*.so.*
}
}