* update convertlit to 1.8-12
This commit is contained in:
parent
981bf4029c
commit
b65d73cb24
15
convertlit/.SRCINFO
Normal file
15
convertlit/.SRCINFO
Normal file
@ -0,0 +1,15 @@
|
||||
pkgbase = convertlit
|
||||
pkgdesc = An extractor/converter for .LIT eBooks
|
||||
pkgver = 1.8
|
||||
pkgrel = 12
|
||||
url = http://www.convertlit.com/
|
||||
arch = x86_64
|
||||
license = GPL-2.0-or-later
|
||||
depends = glibc
|
||||
depends = libtommath
|
||||
source = http://www.convertlit.com/clit18src.zip
|
||||
source = Wformat-security.patch
|
||||
sha256sums = d70a85f5b945104340d56f48ec17bcf544e3bb3c35b1b3d58d230be699e557ba
|
||||
sha256sums = 79c587cda8d7639f362d83756508af15f8e7b24c9388eebca2df6e3956544e3a
|
||||
|
||||
pkgname = convertlit
|
4
convertlit/.nvchecker.toml
Normal file
4
convertlit/.nvchecker.toml
Normal file
@ -0,0 +1,4 @@
|
||||
[convertlit]
|
||||
source = 'regex'
|
||||
url = 'http://www.convertlit.com/download.php'
|
||||
regex = 'Convert LIT (\d+.\d+)'
|
@ -5,30 +5,36 @@
|
||||
|
||||
pkgname=convertlit
|
||||
pkgver=1.8
|
||||
pkgrel=11
|
||||
pkgrel=12
|
||||
pkgdesc='An extractor/converter for .LIT eBooks'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url='http://www.convertlit.com/'
|
||||
license=(GPL)
|
||||
depends=(libtommath)
|
||||
source=(http://www.convertlit.com/clit18src.zip)
|
||||
sha256sums=('d70a85f5b945104340d56f48ec17bcf544e3bb3c35b1b3d58d230be699e557ba')
|
||||
license=(GPL-2.0-or-later)
|
||||
depends=(glibc
|
||||
libtommath)
|
||||
source=(http://www.convertlit.com/clit18src.zip
|
||||
Wformat-security.patch)
|
||||
sha256sums=('d70a85f5b945104340d56f48ec17bcf544e3bb3c35b1b3d58d230be699e557ba'
|
||||
'3dd79278678572ea92e3e48528e5057d8da8f6a6c6edefeb6f02cbd6ddad0340')
|
||||
|
||||
prepare() {
|
||||
# Fix build with -Wformat-security (Gentoo)
|
||||
patch -p0 < Wformat-security.patch
|
||||
# Link to shared libtommath and use system LDFLAGS
|
||||
sed -i 's|../libtommath-0.30/libtommath.a|/usr/lib/libtommath.so ${LDFLAGS}|' clit18/Makefile
|
||||
sed -e 's|../libtommath-0.30/libtommath.a|/usr/lib/libtommath.so ${LDFLAGS}|' -i clit18/Makefile
|
||||
# Use system CFLAGS
|
||||
sed -e 's|CFLAGS=-O3 -Wall|CFLAGS+=|' -i lib/Makefile
|
||||
sed -e 's|CFLAGS=-funsigned-char -Wall -O2|CFLAGS+=|' -i clit18/Makefile
|
||||
}
|
||||
|
||||
build() {
|
||||
cd lib
|
||||
make
|
||||
export CFLAGS+=" -Wno-implicit-function-declaration"
|
||||
|
||||
cd ../clit18
|
||||
make
|
||||
cd lib && make
|
||||
cd ../clit18 && make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd clit18
|
||||
|
||||
install -Dm755 clit "$pkgdir/usr/bin/clit"
|
||||
install -Dm755 clit -t "$pkgdir"/usr/bin
|
||||
}
|
||||
|
23
convertlit/Wformat-security.patch
Normal file
23
convertlit/Wformat-security.patch
Normal file
@ -0,0 +1,23 @@
|
||||
--- clit18/clit.c.orig 2024-08-09 13:40:30.898055167 +0200
|
||||
+++ clit18/clit.c 2024-08-09 13:41:48.526460124 +0200
|
||||
@@ -125,9 +125,9 @@
|
||||
dir_program[i+1] = '\0'; break;
|
||||
}
|
||||
}
|
||||
- printf(sTitle);
|
||||
+ printf("%s", sTitle);
|
||||
if (argc < 3) {
|
||||
- printf(sUsage);
|
||||
+ printf("%s", sUsage);
|
||||
return -1;
|
||||
}
|
||||
base = 1;
|
||||
@@ -189,7 +189,7 @@
|
||||
lit_close(&lit);
|
||||
exit(-1);
|
||||
}
|
||||
- printf("LIT INFORMATION.........\n");
|
||||
+ printf("%s", "LIT INFORMATION.........\n");
|
||||
if (lit.drmlevel >= 0)
|
||||
printf("DRM = %d \n", lit.drmlevel);
|
||||
printf("Timestamp = %08lx \n", lit.timestamp);
|
Loading…
x
Reference in New Issue
Block a user