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

Antonio Rojas arojas at archlinux.org
Sun Apr 5 11:14:33 UTC 2020


    Date: Sunday, April 5, 2020 @ 11:14:32
  Author: arojas
Revision: 611826

archrelease: copy trunk to community-staging-x86_64

Added:
  dvdbackup/repos/community-staging-x86_64/
  dvdbackup/repos/community-staging-x86_64/PKGBUILD
    (from rev 611825, dvdbackup/trunk/PKGBUILD)
  dvdbackup/repos/community-staging-x86_64/dvdbackup-dvdread-6.1.patch
    (from rev 611825, dvdbackup/trunk/dvdbackup-dvdread-6.1.patch)

-----------------------------+
 PKGBUILD                    |   39 ++++++++++++++++++
 dvdbackup-dvdread-6.1.patch |   87 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 126 insertions(+)

Copied: dvdbackup/repos/community-staging-x86_64/PKGBUILD (from rev 611825, dvdbackup/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-05 11:14:32 UTC (rev 611826)
@@ -0,0 +1,39 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: yugrotavele <yugrotavele at archlinux dot us>
+# Contributor: Varun Acharya <varun at archlinux.org>
+# Contributor: Nicolai Lissner <nlissne at linux01.gwdg.de>
+
+pkgname=dvdbackup
+pkgver=0.4.2
+pkgrel=6
+pkgdesc="Tool to rip video DVDs from the command line"
+arch=('x86_64')
+url="https://dvdbackup.sourceforge.net"
+license=('GPL3')
+depends=('libdvdread')
+optdepends=('libdvdcss: to decrypt encrypted DVDs')
+source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz
+        dvdbackup-dvdread-6.1.patch)
+sha512sums=('df9abb2ca0b8a7cd7855ddff94dae249b06b2ec0ee42f3e9c53aa46aebd9885bdf26dacecbd4a20ff5f642ea10c0c64b811d25c23802c8a2b1489281900fbe0d'
+            '3cdbf37b89c9723bff4212e994e194c4da62c9509cadccb47a63eb423675152e7f7fabf866225beef8e6831ac33365648eeccd737c6c54cf211dd354aacd2382')
+
+prepare() {
+  cd $pkgname-$pkgver
+  
+# fix build with libdvdread 6.1 https://bugs.launchpad.net/dvdbackup/+bug/1869226
+  patch -p0 -i ../dvdbackup-dvdread-6.1.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr
+
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+}

Copied: dvdbackup/repos/community-staging-x86_64/dvdbackup-dvdread-6.1.patch (from rev 611825, dvdbackup/trunk/dvdbackup-dvdread-6.1.patch)
===================================================================
--- community-staging-x86_64/dvdbackup-dvdread-6.1.patch	                        (rev 0)
+++ community-staging-x86_64/dvdbackup-dvdread-6.1.patch	2020-04-05 11:14:32 UTC (rev 611826)
@@ -0,0 +1,87 @@
+--- src/dvdbackup.c.orig 2012-06-24 01:10:29 UTC
++++ src/dvdbackup.c
+@@ -1132,7 +1132,7 @@ static int DVDCopyIfoBup(dvd_reader_t* dvd, title_set_
+ 	int size;
+ 
+ 	/* DVD handler */
+-	ifo_handle_t* ifo_file = NULL;
++	dvd_file_t* ifo_file = NULL;
+ 
+ 	if (title_set_info->number_of_title_sets + 1 < title_set) {
+ 		return(1);
+@@ -1181,7 +1181,7 @@ static int DVDCopyIfoBup(dvd_reader_t* dvd, title_set_
+ 	if ((streamout_ifo = open(targetname_ifo, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
+ 		fprintf(stderr, _("Error creating %s\n"), targetname_ifo);
+ 		perror(PACKAGE);
+-		ifoClose(ifo_file);
++		DVDCloseFile(ifo_file);
+ 		free(buffer);
+ 		close(streamout_ifo);
+ 		close(streamout_bup);
+@@ -1191,7 +1191,7 @@ static int DVDCopyIfoBup(dvd_reader_t* dvd, title_set_
+ 	if ((streamout_bup = open(targetname_bup, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
+ 		fprintf(stderr, _("Error creating %s\n"), targetname_bup);
+ 		perror(PACKAGE);
+-		ifoClose(ifo_file);
++		DVDCloseFile(ifo_file);
+ 		free(buffer);
+ 		close(streamout_ifo);
+ 		close(streamout_bup);
+@@ -1200,31 +1200,31 @@ static int DVDCopyIfoBup(dvd_reader_t* dvd, title_set_
+ 
+ 	/* Copy VIDEO_TS.IFO, since it's a small file try to copy it in one shot */
+ 
+-	if ((ifo_file = ifoOpen(dvd, title_set))== 0) {
++	if ((ifo_file = DVDOpenFile(dvd, title_set, DVD_READ_INFO_FILE))== 0) {
+ 		fprintf(stderr, _("Failed opening IFO for title set %d\n"), title_set);
+-		ifoClose(ifo_file);
++		DVDCloseFile(ifo_file);
+ 		free(buffer);
+ 		close(streamout_ifo);
+ 		close(streamout_bup);
+ 		return 1;
+ 	}
+ 
+-	size = DVDFileSize(ifo_file->file) * DVD_VIDEO_LB_LEN;
++	size = DVDFileSize(ifo_file) * DVD_VIDEO_LB_LEN;
+ 
+ 	if ((buffer = (unsigned char *)malloc(size * sizeof(unsigned char))) == NULL) {
+ 		perror(PACKAGE);
+-		ifoClose(ifo_file);
++		DVDCloseFile(ifo_file);
+ 		free(buffer);
+ 		close(streamout_ifo);
+ 		close(streamout_bup);
+ 		return 1;
+ 	}
+ 
+-	DVDFileSeek(ifo_file->file, 0);
++	DVDFileSeek(ifo_file, 0);
+ 
+-	if (DVDReadBytes(ifo_file->file,buffer,size) != size) {
++	if (DVDReadBytes(ifo_file,buffer,size) != size) {
+ 		fprintf(stderr, _("Error reading IFO for title set %d\n"), title_set);
+-		ifoClose(ifo_file);
++		DVDCloseFile(ifo_file);
+ 		free(buffer);
+ 		close(streamout_ifo);
+ 		close(streamout_bup);
+@@ -1234,7 +1234,7 @@ static int DVDCopyIfoBup(dvd_reader_t* dvd, title_set_
+ 
+ 	if (write(streamout_ifo,buffer,size) != size) {
+ 		fprintf(stderr, _("Error writing %s\n"),targetname_ifo);
+-		ifoClose(ifo_file);
++		DVDCloseFile(ifo_file);
+ 		free(buffer);
+ 		close(streamout_ifo);
+ 		close(streamout_bup);
+@@ -1243,7 +1243,7 @@ static int DVDCopyIfoBup(dvd_reader_t* dvd, title_set_
+ 
+ 	if (write(streamout_bup,buffer,size) != size) {
+ 		fprintf(stderr, _("Error writing %s\n"),targetname_bup);
+-		ifoClose(ifo_file);
++		DVDCloseFile(ifo_file);
+ 		free(buffer);
+ 		close(streamout_ifo);
+ 		close(streamout_bup);
+-----



More information about the arch-commits mailing list