[arch-commits] Commit in convertlit/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue Jun 2 08:15:47 UTC 2020


    Date: Tuesday, June 2, 2020 @ 08:15:46
  Author: arojas
Revision: 388060

Link to shared libtommath

Modified:
  convertlit/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-02 07:46:04 UTC (rev 388059)
+++ PKGBUILD	2020-06-02 08:15:46 UTC (rev 388060)
@@ -4,22 +4,25 @@
 
 pkgname=convertlit
 pkgver=1.8
-pkgrel=9
+pkgrel=10
 pkgdesc="An extractor/converter for .LIT eBooks"
 arch=('x86_64')
 url="http://www.convertlit.com/"
 license=('GPL')
-depends=('glibc')
-makedepends=('libtommath')
+depends=(libtommath)
 source=("http://www.convertlit.com/clit18src.zip")
 md5sums=('d691d4729485fe5d73e3f0937d8fb42e')
 
+prepare() {
+# Link to shared libtommath and use system LDFLAGS
+  sed -i 's|../libtommath-0.30/libtommath.a|/usr/lib/libtommath.so ${LDFLAGS}|' clit18/Makefile
+}
+
 build() {
   cd lib
   make 
 
   cd ../clit18
-  sed -i 's|../libtommath-0.30/|/usr/lib/|' Makefile
   make
 }
 



More information about the arch-commits mailing list