861ac185a6
```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 ```
28 lines
775 B
Bash
28 lines
775 B
Bash
# Template file for 'lua51-luasocket'
|
|
pkgname=lua51-luasocket
|
|
version=2.0.2
|
|
revision=7
|
|
wrksrc=luasocket-${version}
|
|
build_style=gnu-makefile
|
|
makedepends="lua51-devel"
|
|
depends="lua51"
|
|
short_desc="Network support for the Lua language"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://w3.impa.br/~diego/software/luasocket/"
|
|
distfiles="http://luaforge.net/frs/download.php/2664/luasocket-${version}.tar.gz"
|
|
checksum=4fd9c775cfd98841299851e29b30176caf289370fea1ff1e00bb67c2d6842ca6
|
|
|
|
do_build() {
|
|
make CC=$CC LD=$CC LUAINC=-I${XBPS_CROSS_BASE}/usr/include/lua5.1 ${makejobs}
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
luasocket_package() {
|
|
depends="lua51-luasocket>=${version}_${revision}"
|
|
short_desc+=" (transitional dummy package)"
|
|
build_style=meta
|
|
}
|