3353bf4722
```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 ```
34 lines
857 B
Bash
34 lines
857 B
Bash
# Template file for 'xar'
|
|
pkgname=xar
|
|
version=1.6.1
|
|
revision=9
|
|
build_style=gnu-configure
|
|
configure_args="ac_cv_sizeof_uid_t=4"
|
|
makedepends="zlib-devel bzip2-devel e2fsprogs-devel acl-devel libxml2-devel openssl-devel"
|
|
short_desc="Archiver for the eXtensible ARchiver format"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/mackyle/xar"
|
|
distfiles="https://github.com/downloads/mackyle/xar/${pkgname}-${version}.tar.gz"
|
|
checksum=ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
makedepends+=" musl-fts-devel"
|
|
LDFLAGS="-lfts"
|
|
;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
xar-devel_package() {
|
|
depends="xar-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|