From dcbf2b7a09fc0710e38ec643e317fa25270b6f6b Mon Sep 17 00:00:00 2001 From: hazen2215 Date: Thu, 27 Apr 2023 23:00:58 +0900 Subject: [PATCH] xsel: update to 1.2.1. --- srcpkgs/xsel/patches/strncpy.patch | 13 ------------- srcpkgs/xsel/template | 13 +++++++++---- 2 files changed, 9 insertions(+), 17 deletions(-) delete mode 100644 srcpkgs/xsel/patches/strncpy.patch diff --git a/srcpkgs/xsel/patches/strncpy.patch b/srcpkgs/xsel/patches/strncpy.patch deleted file mode 100644 index fc08b667b01..00000000000 --- a/srcpkgs/xsel/patches/strncpy.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git xsel.c xsel.c -index 79cc68b..556585e 100644 ---- a/xsel.c -+++ b/xsel.c -@@ -1983,7 +1983,7 @@ main(int argc, char *argv[]) - dont_output = True; - } else if (OPT("--logfile") || OPT("-l")) { - i++; if (i >= argc) goto usage_err; -- strncpy (logfile, argv[i], MAXFNAME); -+ strncpy (logfile, argv[i], MAXFNAME-1); - } else { - goto usage_err; - } diff --git a/srcpkgs/xsel/template b/srcpkgs/xsel/template index d83385cdcbe..d3a5aacdb0f 100644 --- a/srcpkgs/xsel/template +++ b/srcpkgs/xsel/template @@ -1,16 +1,21 @@ # Template file for 'xsel' pkgname=xsel -version=1.2.0 -revision=5 +version=1.2.1 +revision=1 build_style="gnu-configure" +hostmakedepends="autoconf automake pkg-config" makedepends="libXt-devel" short_desc="Command-line getting and setting the contents of the X selection" maintainer="Steven R " license="HPND-sell-variant" homepage="http://www.kfish.org/software/xsel/" changelog="https://raw.githubusercontent.com/kfish/xsel/master/release_notes/xsel-${version}.txt" -distfiles="http://www.kfish.org/software/xsel/download/xsel-${version}.tar.gz" -checksum=b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c +distfiles="https://github.com/kfish/xsel/archive/refs/tags/${version}.tar.gz" +checksum=18487761f5ca626a036d65ef2db8ad9923bf61685e06e7533676c56d7d60eb14 + +pre_configure() { + autoreconf -fi +} post_install() { vlicense COPYING LICENSE