void-packages/srcpkgs/libmemcached/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

38 lines
968 B
Bash

# Template file for 'libmemcached'
pkgname=libmemcached
version=1.0.18
revision=6
build_style=gnu-configure
configure_args="--prefix=/usr"
hostmakedepends="perl"
makedepends="libevent-devel libsasl-devel memcached-devel"
short_desc="C/C++ library to memcached"
maintainer="John Regan <john@jrjrtech.com>"
license="BSD-3-Clause"
homepage="https://libmemcached.org/libMemcached.html"
distfiles="http://launchpad.net/${pkgname}/1.0/${version}/+download/${pkgname}-${version}.tar.gz"
checksum=e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82
post_install() {
vlicense COPYING
}
libmemcached-devel_package() {
short_desc+=" - development files"
depends="libsasl-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}
libmemcached-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/man
}
}