initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

46
dia/PKGBUILD Normal file
View File

@@ -0,0 +1,46 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=dia
pkgver=0.97.3
pkgrel=1
pkgdesc="A free and libre GTK+ based diagram creation program"
arch=('i686' 'x86_64')
license=('GPL-2')
url='http://live.gnome.org/Dia'
depends=('libxslt' 'gtk2')
makedepends=('intltool' 'docbook-xsl' 'gettext-tiny')
options=('docs' '!emptydirs')
source=("https://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.97/${pkgname}-${pkgver}.tar.xz"
"dia-0.9.3-cve-2019-19451.patch")
sha512sums=('34298980be930b87cb4a636344e4cb2a7e43eedc00b0969a5e446cee9b74b616fdc8c798efcb9a5832b98741f2e20632a44037b2bcb436f59591d531ef441efa'
'13812395b220789b404c68f688aeb7ec82336d84751a93c5a9a73b32d02ba4b89b64420ce264e3e1b7efd4ecedadfbc2f78997b12cf2320dfa56ebfb20fa5edc')
prepare() {
cd "${pkgname}-${pkgver}"
sed -i 's#freetype-config --cflags#pkg-config --cflags freetype2#' configure
sed -i 's#freetype-config --libs#pkg-config --libs freetype2#' configure
patch -Np1 -i "${srcdir}/dia-0.9.3-cve-2019-19451.patch"
}
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr \
--with-cairo \
--disable-python \
--disable-gnome \
--with-hardbooks
sed -i 's#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data tests installer#' Makefile
make
cd doc
make html
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
cd doc
make DESTDIR="${pkgdir}" install-html
ln -sf ../doc/$pkgname/html "${pkgdir}/usr/share/$pkgname/help"
}

View File

@@ -0,0 +1,26 @@
From baa2df853f9fb770eedcf3d94c7f5becebc90bb9 Mon Sep 17 00:00:00 2001
From: Nils Steinger <git@n-st.de>
Date: Thu, 7 Nov 2019 15:12:18 +0100
Subject: [PATCH] Fix endless loop on filenames with invalid encoding
See also:
- https://bugzilla.redhat.com/show_bug.cgi?id=1778767
- https://gitlab.gnome.org/GNOME/dia/-/issues/428
---
app/app_procs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/app_procs.c b/app/app_procs.c
index 434a092f6..53f8b8c38 100644
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -675,6 +675,7 @@ app_init (int argc, char **argv)
if (!filename) {
g_print (_("Filename conversion failed: %s\n"), filenames[i]);
+ ++i;
continue;
}
--
GitLab