```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 ```
30 lines
976 B
Bash
30 lines
976 B
Bash
# Template file for 'turbovnc'
|
|
pkgname=turbovnc
|
|
version=2.2.6
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DTJPEG_LIBRARY=/usr/lib/libturbojpeg.so -DTVNC_BUILDJAVA=0
|
|
-DTVNC_SYSTEMLIBS=ON"
|
|
hostmakedepends="rsync"
|
|
makedepends="libjpeg-turbo-devel libXt-devel libXaw-devel libXcursor-devel pam-devel
|
|
zlib-devel freetype-devel bzip2-devel openssl-devel"
|
|
depends="perl"
|
|
short_desc="Optimized version of TightVNC VNC client and server"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://turbovnc.org"
|
|
distfiles="${SOURCEFORGE_SITE}/turbovnc/${pkgname}-${version}.tar.gz"
|
|
checksum=71ff553dbad24f8339e168fe90e09bc2b13c21e453f28276d0e5c9c408bd9de2
|
|
|
|
conf_files="/etc/*.conf"
|
|
archs="i686* x86_64* ppc64*"
|
|
conflicts="tigervnc>=0"
|
|
|
|
# Need this to make <sys/socket.h> define struct ucred with musl
|
|
CFLAGS="-D_GNU_SOURCE"
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/etc/sysconfig
|
|
rm -rf ${DESTDIR}/etc/init.d
|
|
rm ${DESTDIR}/usr/share/man/man1/Xserver.1
|
|
}
|