commit 6d6425ed4744b7871af1f299ae7cfde01f423a9a
parent 25d8e19c802c5c4d3e91d1ba88faf36fff1b58dc
Author: Dash Eclipse <dash@ezup.dev>
Date: Sun, 4 Oct 2020 21:55:51 +0000
New package: stagit
Diffstat:
4 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/README b/README
@@ -10,6 +10,7 @@ Modified packages
lilo keytab-lilo patch
pass #git
slock scrollback, scrollback-mouse, nordtheme
+ stagit multiline-select
New packages
diff --git a/common/shlibs b/common/shlibs
@@ -1646,6 +1646,7 @@ libfreerdp-utils.so.1.0 libfreerdp-1.0.2_2
libfreerdp-codec.so.1.0 libfreerdp-1.0.2_2
libfreerdp-gdi.so.1.0 libfreerdp-1.0.2_2
libfreerdp-cache.so.1.0 libfreerdp-1.0.2_2
+libuwac0.so.0 libfreerdp-2.2.0_1
libcppunit-1.14.so.0 libcppunit-1.14.0_1
libcalc.so.2.12.7.1 libcalc-2.12.7.1_1
libcustcalc.so.2.12.7.1 libcalc-2.12.7.1_1
diff --git a/srcpkgs/stagit/patches/0001-optimize-for-selecting-multiple-lines-of-codes.patch b/srcpkgs/stagit/patches/0001-optimize-for-selecting-multiple-lines-of-codes.patch
@@ -0,0 +1,39 @@
+From 84c0c5077c703b2a8040aea9ac9f83075db0191c Mon Sep 17 00:00:00 2001
+From: Dash Eclipse <dash@ezup.dev>
+Date: Sun, 4 Oct 2020 21:36:01 +0000
+Subject: [PATCH] optimize for selecting multiple lines of codes
+
+---
+ stagit.c | 2 +-
+ style.css | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/stagit.c b/stagit.c
+index d9e80a1..04f3ec9 100644
+--- a/stagit.c
++++ b/stagit.c
+@@ -503,7 +503,7 @@ int
+ writeblobhtml(FILE *fp, const git_blob *blob)
+ {
+ size_t n = 0, i, prev;
+- const char *nfmt = "<a href=\"#l%d\" class=\"line\" id=\"l%d\">%7d</a> ";
++ const char *nfmt = "<a href=\"#l%d\" class=\"line\" id=\"l%d\">%7d</a>";
+ const char *s = git_blob_rawcontent(blob);
+ git_off_t len = git_blob_rawsize(blob);
+
+diff --git a/style.css b/style.css
+index d1cd6d3..e98fa99 100644
+--- a/style.css
++++ b/style.css
+@@ -30,6 +30,8 @@ a.line {
+
+ #blob a {
+ color: #777;
++ user-select: none;
++ margin-right: 7px;
+ }
+
+ #blob a:hover {
+--
+2.28.0
+
diff --git a/srcpkgs/stagit/template b/srcpkgs/stagit/template
@@ -0,0 +1,19 @@
+# Template file for 'stagit'
+pkgname=stagit
+version=0.9.4
+revision=2
+patch_args="-Np1"
+build_style=gnu-makefile
+make_install_args="MANPREFIX=/usr/share/man"
+makedepends="libgit2-devel"
+short_desc="Static git page generator"
+maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
+license="MIT"
+homepage="https://codemadness.org/git/stagit/log.html"
+distfiles="https://codemadness.org/releases/stagit/${pkgname}-${version}.tar.gz"
+checksum=8889ab13fa345729cdc3cc92c8fdce10d49f6660f39a60def7646c86d8a61300
+LDFLAGS="-lgit2"
+
+post_install() {
+ vlicense LICENSE
+}