summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiří Klimeš2021-08-06 12:49:07 +0200
committerJiří Klimeš2021-08-06 12:56:34 +0200
commit5bb04f6e9a4a0616b99dfee9242a7e9862bc0875 (patch)
tree29485d0aabe89c8a7feaaebf3cc51383fc667644
parent1eeb0d50e4cfd61bd0a244628896999d25863288 (diff)
downloadaur-5bb04f6e9a4a0616b99dfee9242a7e9862bc0875.tar.gz
Fix linking to pdflib-lite library
AUR pdflib-lite creates libpdf.so rather than libpdflib.so libcd upstream now uses an internal copy of PDFlib-lite and links against. https://www.mail-archive.com/iup-users@lists.sourceforge.net/msg03590.html https://sourceforge.net/p/canvasdraw/cd/896/
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD5
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3388075319a..7e4619b5bed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = libcd
pkgdesc = Canvas Draw - 2D vector graphics library
pkgver = 5.14
- pkgrel = 1
+ pkgrel = 2
url = https://www.tecgraf.puc-rio.br/cd/
arch = i686
arch = x86_64
@@ -46,4 +46,3 @@ pkgname = lua52-cd
pkgname = lua53-cd
pkgdesc = Lua (5.3) bindings for Canvas Draw library
depends = libcd
-
diff --git a/PKGBUILD b/PKGBUILD
index 7529a37d17d..03640d9658b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgbase=libcd
pkgname=('libcd' 'lua-cd' 'lua51-cd' 'lua52-cd' 'lua53-cd')
pkgdesc="Canvas Draw - 2D vector graphics library"
pkgver=5.14
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url="https://www.tecgraf.puc-rio.br/cd/"
makedepends=('glu' 'pdflib-lite' 'lsb-release' 'lua' 'lua51' 'lua52' 'lua53' 'lua-im' 'lua51-im' 'lua52-im' 'lua53-im')
@@ -30,6 +30,9 @@ prepare() {
sed 's/LIBS += gdk_pixbuf-2.0 pango-1.0 gobject-2.0 gmodule-2.0 glib-2.0/LIBS += gdk_pixbuf-2.0 pango-1.0 harfbuzz gobject-2.0 gmodule-2.0 glib-2.0/' -i "$srcdir"/cd/tecmake.mak
sed 's|STDINCS += $(GTK)/include/cairo $(GTK)/include/pango-1.0 $(GTK)/include/glib-2.0|STDINCS += $(GTK)/include/cairo $(GTK)/include/pango-1.0 $(GTK)/include/harfbuzz $(GTK)/include/glib-2.0|' -i "$srcdir"/cd/tecmake.mak
fi
+
+ # patch to link to pdflib-lite correctly (AUR pdflib-lite is just named libpdf instead of libpdflib)
+ sed 's|LIBS += pdflib|LIBS += pdf|' -i "$srcdir"/cd/tecmake.mak
}
build() {