summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-15 17:19:24 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-15 17:19:24 +0000
commit2650845b21f1fcacc402513108241ea7d3a51d10 (patch)
tree97c23657c2cedbc7f2a6de322c8ac610cdc5f0a0 /user
parent1930bc3928fc39cd8d9937b234b798cad20fd28b (diff)
downloadpackages-2650845b21f1fcacc402513108241ea7d3a51d10.tar.gz
packages-2650845b21f1fcacc402513108241ea7d3a51d10.tar.bz2
packages-2650845b21f1fcacc402513108241ea7d3a51d10.tar.xz
packages-2650845b21f1fcacc402513108241ea7d3a51d10.zip
user/convertlit: new package
Diffstat (limited to 'user')
-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
+