summaryrefslogtreecommitdiff
path: root/user/convertlit
diff options
context:
space:
mode:
Diffstat (limited to 'user/convertlit')
-rw-r--r--user/convertlit/APKBUILD31
-rw-r--r--user/convertlit/lib.patch14
2 files changed, 45 insertions, 0 deletions
diff --git a/user/convertlit/APKBUILD b/user/convertlit/APKBUILD
new file mode 100644
index 000000000..49cce0d46
--- /dev/null
+++ b/user/convertlit/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=convertlit
+pkgver=1.8
+pkgrel=0
+pkgdesc="Tool to convert Microsoft Reader .LIT files to open formats"
+url="http://www.convertlit.com/"
+arch="all"
+options="!check" # No test suite.
+license="GPL-2.0"
+depends=""
+makedepends="libtommath-dev"
+subpackages=""
+source="http://www.convertlit.com/${pkgname}${pkgver/./}src.zip
+ lib.patch
+ "
+builddir="$srcdir/"
+
+build() {
+ cd "$builddir"
+ make -C lib
+ make -C clit18
+}
+
+package() {
+ cd "$builddir"
+ install -D -m755 clit18/clit "$pkgdir"/usr/bin/clit
+}
+
+sha512sums="0d4b7d525f5164a73a47a00e1c4e93ff50e738a4e6c541ded283c4779e6a67138f601c23a41344517ca5d7f8c9141b25cc6edc7f3967fbf9042e99f647354f36 convertlit18src.zip
+b54a826805f3ce13d75da3c0f8f635235efd8ae1550962b5e44a5c8c67325f996848a3be6f5ba989a849c66a2293a30ac117212786ff36b5c01743aa87f6ef29 lib.patch"
diff --git a/user/convertlit/lib.patch b/user/convertlit/lib.patch
new file mode 100644
index 000000000..222f29074
--- /dev/null
+++ b/user/convertlit/lib.patch
@@ -0,0 +1,14 @@
+--- src/clit18/Makefile.old 2004-07-04 16:52:14.000000000 +0000
++++ src/clit18/Makefile 2019-01-15 17:13:44.510000000 +0000
+@@ -1,9 +1,9 @@
+ all: clit
+
+-CFLAGS=-funsigned-char -Wall -O2 -I ../libtommath-0.30/ -I ../lib -I ../lib/des -I .
++CFLAGS=-funsigned-char -I ../lib -I ../lib/des -I .
+ clean:
+ rm -f *.o clit
+
+ clit: clit.o hexdump.o drm5.o explode.o transmute.o display.o utils.o manifest.o ../lib/openclit.a
+- gcc -o clit $^ ../libtommath-0.30/libtommath.a
++ $(CC) $(LDFLAGS) -o clit $^ -ltommath
+