* update ccd2iso to 0.3-12
This commit is contained in:
parent
9ce49f8c30
commit
5398daeb4d
16
ccd2iso/.SRCINFO
Normal file
16
ccd2iso/.SRCINFO
Normal file
@ -0,0 +1,16 @@
|
||||
pkgbase = ccd2iso
|
||||
pkgdesc = Converts CCD/IMG CloneCD images to ISO format
|
||||
pkgver = 0.3
|
||||
pkgrel = 12
|
||||
url = https://sourceforge.net/projects/ccd2iso
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
depends = glibc
|
||||
source = https://downloads.sourceforge.net/sourceforge/ccd2iso/ccd2iso-0.3.tar.gz
|
||||
source = ccd2iso-0.3-compilerWarnings.patch
|
||||
md5sums = a7df1c46cb710f2fc8ebd88c2e64ce65
|
||||
md5sums = be135089c0b34b04ed7db2ef39fd56a4
|
||||
sha256sums = f874b8fe26112db2cdb016d54a9f69cf286387fbd0c8a55882225f78e20700fc
|
||||
sha256sums = 25f64fccf562797096dbf0b306b0d33fffafcc1b67bce693453704f00465f370
|
||||
|
||||
pkgname = ccd2iso
|
@ -5,15 +5,23 @@
|
||||
|
||||
pkgname=ccd2iso
|
||||
pkgver=0.3
|
||||
pkgrel=11
|
||||
pkgrel=12
|
||||
pkgdesc="Converts CCD/IMG CloneCD images to ISO format"
|
||||
arch=(x86_64 powerpc64le)
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url="https://sourceforge.net/projects/ccd2iso"
|
||||
license=('GPL')
|
||||
depends=('glibc')
|
||||
source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
|
||||
md5sums=('a7df1c46cb710f2fc8ebd88c2e64ce65')
|
||||
sha256sums=('f874b8fe26112db2cdb016d54a9f69cf286387fbd0c8a55882225f78e20700fc')
|
||||
source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
|
||||
"ccd2iso-0.3-compilerWarnings.patch")
|
||||
md5sums=('a7df1c46cb710f2fc8ebd88c2e64ce65'
|
||||
'be135089c0b34b04ed7db2ef39fd56a4')
|
||||
sha256sums=('f874b8fe26112db2cdb016d54a9f69cf286387fbd0c8a55882225f78e20700fc'
|
||||
'25f64fccf562797096dbf0b306b0d33fffafcc1b67bce693453704f00465f370')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}/src
|
||||
patch -Np1 -i "${srcdir}/ccd2iso-0.3-compilerWarnings.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
|
49
ccd2iso/ccd2iso-0.3-compilerWarnings.patch
Normal file
49
ccd2iso/ccd2iso-0.3-compilerWarnings.patch
Normal file
@ -0,0 +1,49 @@
|
||||
diff -u src.orig/ccd2iso.c src/ccd2iso.c
|
||||
--- src.orig/ccd2iso.c 2006-12-15 17:58:32.000000000 +0200
|
||||
+++ src/ccd2iso.c 2010-07-09 15:36:20.723182026 +0300
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include "clonecd.h"
|
||||
|
||||
@@ -93,7 +94,7 @@
|
||||
if (bytes_read < sizeof(ccd_sector))
|
||||
{
|
||||
printf("Error at sector %d.\n", sect_num);
|
||||
- printf("The sector does not contain complete data. Sector size must be %d, while actual data read is %d\n",
|
||||
+ printf("The sector does not contain complete data. Sector size must be %zd, while actual data read is %d\n",
|
||||
sizeof(ccd_sector), bytes_read);
|
||||
return 1;
|
||||
}
|
||||
diff -u src.orig/clonecd.h src/clonecd.h
|
||||
--- src.orig/clonecd.h 2006-12-15 10:25:08.000000000 +0200
|
||||
+++ src/clonecd.h 2010-07-09 15:30:36.405702058 +0300
|
||||
@@ -29,14 +29,14 @@
|
||||
typedef struct {
|
||||
unsigned char sectaddr_min, sectaddr_sec, sectaddr_frac;
|
||||
unsigned char mode;
|
||||
-} ccd_sectheader_header __attribute__((packed));
|
||||
+} __attribute__((packed)) ccd_sectheader_header;
|
||||
|
||||
typedef unsigned char ccd_sectheader_subheader[8]; //??? No idea about the struct
|
||||
|
||||
typedef struct {
|
||||
ccd_sectheader_syn syn;
|
||||
ccd_sectheader_header header;
|
||||
-} ccd_sectheader __attribute__((packed));
|
||||
+} __attribute__((packed)) ccd_sectheader;
|
||||
|
||||
typedef struct {
|
||||
ccd_sectheader sectheader;
|
||||
@@ -54,7 +54,7 @@
|
||||
ccd_ecc ecc;
|
||||
} mode2;
|
||||
} content;
|
||||
-} ccd_sector __attribute__((packed));
|
||||
+} __attribute__((packed)) ccd_sector;
|
||||
|
||||
|
||||
const ccd_sectheader_syn CCD_SYN_DATA = { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00 };
|
Loading…
x
Reference in New Issue
Block a user