[arch-commits] Commit in leafpad/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat May 16 09:32:41 UTC 2020


    Date: Saturday, May 16, 2020 @ 09:32:41
  Author: felixonmars
Revision: 383884

archrelease: copy trunk to staging-x86_64

Added:
  leafpad/repos/staging-x86_64/
  leafpad/repos/staging-x86_64/0001-truncate.patch
    (from rev 383883, leafpad/trunk/0001-truncate.patch)
  leafpad/repos/staging-x86_64/PKGBUILD
    (from rev 383883, leafpad/trunk/PKGBUILD)

---------------------+
 0001-truncate.patch |   20 ++++++++++++++++++++
 PKGBUILD            |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

Copied: leafpad/repos/staging-x86_64/0001-truncate.patch (from rev 383883, leafpad/trunk/0001-truncate.patch)
===================================================================
--- staging-x86_64/0001-truncate.patch	                        (rev 0)
+++ staging-x86_64/0001-truncate.patch	2020-05-16 09:32:41 UTC (rev 383884)
@@ -0,0 +1,20 @@
+diff --git a/src/file.c b/src/file.c
+index 5e44a43..4c90a37 100644
+--- a/src/file.c
++++ b/src/file.c
+@@ -190,6 +190,7 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
+ 	gtk_text_buffer_get_start_iter(buffer, &start);
+ 	gtk_text_buffer_get_end_iter(buffer, &end);	
+ 	str = gtk_text_buffer_get_text(buffer, &start, &end, FALSE);
++	gtk_text_buffer_set_modified(buffer, FALSE);
+ 	
+ 	switch (fi->lineend) {
+ 	case CR:
+@@ -229,7 +230,6 @@ gint file_save_real(GtkWidget *view, FileInfo *fi)
+ 		return -1;
+ 	}
+ 	
+-	gtk_text_buffer_set_modified(buffer, FALSE);
+ 	fclose(fp);
+ 	g_free(cstr);
+ 	

Copied: leafpad/repos/staging-x86_64/PKGBUILD (from rev 383883, leafpad/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 09:32:41 UTC (rev 383884)
@@ -0,0 +1,36 @@
+# Maintainer: Aaron Griffin <aaron at archlinux.org>
+# Contributor: Link Dupont <link at subpop.net>
+
+pkgname=leafpad
+pkgver=0.8.18.1
+pkgrel=9
+pkgdesc="A notepad clone for GTK+ 2.0"
+arch=('x86_64')
+url="http://tarot.freeshell.org/leafpad/"
+license=('GPL')
+depends=('gtk2')
+makedepends=('intltool')
+source=("https://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        '0001-truncate.patch')
+sha256sums=('959d22ae07f22803bc66ff40d373a854532a6e4732680bf8a96a3fbcb9f80a2c'
+            '9d9073ec4684e77cd1a6dd0cec4351750f9f61f2a6bab0e97f06ae6d00b7d2c4')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  patch -Np1 < "${srcdir}/"0001-truncate.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  ./configure --prefix=/usr --enable-chooser
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+  echo 'StartupNotify=true' >> "${pkgdir}/usr/share/applications/leafpad.desktop"
+}


More information about the arch-commits mailing list