summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcell Meszaros2022-06-08 04:10:02 +0200
committerMarcell Meszaros2022-06-08 04:13:52 +0200
commit3a3e230eacf2ed143749bc51118ce828f2bb44ca (patch)
tree596ffca5b6fd0750b0fce03ee4003ca646212397
parent6e2e0f4ebe21542bf1497fcfc3a4a22c46e1d335 (diff)
downloadaur-3a3e230eacf2ed143749bc51118ce828f2bb44ca.tar.gz
remove link configuration to unused libraries libiconv, libnsl, libresolv
otherwise namcap will complain about them: libeb W: Unused shared library '/usr/lib/libiconv.so.2' by file ('usr/lib/libeb.so.16.0.0') libeb W: Unused shared library '/usr/lib/libnsl.so.3' by file ('usr/lib/libeb.so.16.0.0') libeb W: Unused shared library '/usr/lib/libresolv.so.2' by file ('usr/lib/libeb.so.16.0.0')
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD17
2 files changed, 14 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 688507a1e203..5c6d6eb25e32 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,11 @@
pkgbase = libeb
pkgdesc = C library for accessing CD-ROM books. Supports EB, EBG, EBXA, EBXA-C, S-EBXA and EPWING formats.
pkgver = 4.4.3
- pkgrel = 8
+ pkgrel = 9
url = http://www.mistys-internet.website/eb/index-en.html
arch = i686
arch = x86_64
license = BSD
- depends = libnsl
depends = perl
depends = zlib
provides = libeb.so
diff --git a/PKGBUILD b/PKGBUILD
index 6bc22f0b6791..c7e45c28a43e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,15 +4,13 @@
pkgname='libeb'
_pkgname='eb'
pkgver=4.4.3
-pkgrel=8
+pkgrel=9
_pkgrel_debian=14 # Version of Debian package patch
pkgdesc='C library for accessing CD-ROM books. Supports EB, EBG, EBXA, EBXA-C, S-EBXA and EPWING formats.'
arch=('i686' 'x86_64')
url='http://www.mistys-internet.website/eb/index-en.html'
license=('BSD')
-depends=('libnsl'
- 'perl'
- 'zlib')
+depends=('perl' 'zlib')
provides=('libeb.so' 'eb-library')
conflicts=('eb-library')
replaces=('eb-library') # Has been deleted from AUR and merged into this package
@@ -28,6 +26,17 @@ prepare() {
msg2 "[patch] Applying ${_patch1_name}..."
patch --forward --strip=1 --input="../${_patch1_name}"
+ msg2 "Removing link configuration for unused libraries"
+ sed -e 's/-liconv//g' \
+ -i 'm4/gettext.m4' \
+ -i 'configure'
+ sed -e 's/-lnsl//g' \
+ -e 's/-lresolv//g' \
+ -i 'configure'
+ sed -e '/AC_CHECK_LIB(nsl/c/' \
+ -e '/AC_CHECK_LIB(resolv/c/' \
+ -i 'configure.ac'
+
msg2 "[autoupdate] Refreshing configure.ac..."
autoupdate --force