patched created by salfter to build with new glib2

This commit is contained in:
flan_suse
2024-05-31 21:58:45 -04:00
parent 3c0c943518
commit bd9fcac002
3 changed files with 26 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
pkgbase = dvdisaster
pkgdesc = Provides a margin of safety against data loss on newly created ISO, CD, DVD, BDR, and M-Disc media caused by aging or scratches
pkgver = 0.79.10
pkgrel = 2
pkgrel = 3
url = https://dvdisaster.jcea.es
arch = x86_64
license = GPL
@@ -9,6 +9,8 @@ pkgbase = dvdisaster
provides = dvdisaster
options = !makeflags
source = dvdisaster-0.79.10.tar.bz2::https://dvdisaster.jcea.es/downloads/dvdisaster-0.79.10.tar.bz2
source = bash-based-configure.patch
md5sums = e913b8375a2bd41a55df7f53379f8d0d
md5sums = f5d1737310b6d84a84c1cdb38c264c81
pkgname = dvdisaster

View File

@@ -2,6 +2,7 @@
# Maintainer: flan_suse <windows2linux_AT_zoho_DOT_com>
# Contributor: Eric Bélanger <eric@archlinux.org>
# Contributor: C2D6@aur (PKGBUILD improvements)
# Contributor: salfter (patch to build with newer glib2)
# NOTE: Previous versions of this PKGBUILD contained an unused signature file.
# If you wish you validate the source file against its signature,
@@ -10,7 +11,7 @@
pkgname=dvdisaster
pkgver=0.79.10
pkgrel=2
pkgrel=3
provides=('dvdisaster')
pkgdesc="Provides a margin of safety against data loss on newly created ISO, CD, DVD, BDR, and M-Disc media caused by aging or scratches"
arch=('x86_64')
@@ -18,9 +19,17 @@ url="https://dvdisaster.jcea.es"
license=('GPL')
depends=('gtk2')
options=('!makeflags')
source=(${pkgname}-${pkgver}.tar.bz2::${url}/downloads/${pkgname}-${pkgver}.tar.bz2)
source=(${pkgname}-${pkgver}.tar.bz2::${url}/downloads/${pkgname}-${pkgver}.tar.bz2 bash-based-configure.patch)
# Upstream only publishes an MD5 hash, which is why MD5 is specfically used in this checksum array
md5sums=('e913b8375a2bd41a55df7f53379f8d0d')
md5sums=('e913b8375a2bd41a55df7f53379f8d0d'
'f5d1737310b6d84a84c1cdb38c264c81')
prepare()
{
cd ${pkgname}-${pkgver}
# Apply patch to fix issue for building with newer glib2
patch -p1 -i ${srcdir}/bash-based-configure.patch
}
build() {
export CFLAGS="$CFLAGS -fcommon"
@@ -36,7 +45,7 @@ build() {
package() {
cd ${pkgname}-${pkgver}
make BUILDROOT="${pkgdir}" install
# Remove unnecessary uninstaller script
# Remove unnecessary uninstaller script
rm -f "${pkgdir}/usr/bin/dvdisaster-uninstall.sh"
# Copy .desktop file to standard applications directory
install -D -m 644 contrib/dvdisaster.desktop "${pkgdir}/usr/share/applications/dvdisaster.desktop"

View File

@@ -0,0 +1,10 @@
--- dvdisaster-0.79.10/scripts/bash-based-configure 2021-09-24 02:13:23.000000000 -0700
+++ dvdisaster-0.79.10/scripts/bash-based-configure 2024-05-31 13:47:28.846985555 -0700
@@ -1364,6 +1364,7 @@
cat >conftest.c <<EOF
#include <glib.h>
+#include <stdio.h>
int main(int argc, char *argv[])
{ g_malloc(1024);