xsel: update to 1.2.1.

This commit is contained in:
hazen2215 2023-04-27 23:00:58 +09:00 committed by Andrew Benson
parent 6b7765f60c
commit dcbf2b7a09
2 changed files with 9 additions and 17 deletions

View file

@ -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;
}

View file

@ -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 <dev@styez.com>"
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