diff options
author | Marcell Meszaros | 2022-06-08 04:10:02 +0200 |
---|---|---|
committer | Marcell Meszaros | 2022-06-08 04:13:52 +0200 |
commit | 3a3e230eacf2ed143749bc51118ce828f2bb44ca (patch) | |
tree | 596ffca5b6fd0750b0fce03ee4003ca646212397 | |
parent | 6e2e0f4ebe21542bf1497fcfc3a4a22c46e1d335 (diff) | |
download | aur-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-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 14 insertions, 6 deletions
@@ -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 @@ -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 |