diff options
author | vcalv | 2023-03-04 13:44:43 -0500 |
---|---|---|
committer | vcalv | 2023-03-04 13:44:43 -0500 |
commit | fc9d42a9e3f4028f59776efc50ccb097cb177385 (patch) | |
tree | a9f04761bea2cdc32a3d1c4b0ac3530c55c84bb1 | |
parent | 8d76a64f0c1ec9d26da43db72c6a97e1ddce5cd3 (diff) | |
download | aur-fc9d42a9e3f4028f59776efc50ccb097cb177385.tar.gz |
fix zlib linking problem with patchelf and not sed
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 4 deletions
@@ -1,10 +1,11 @@ pkgbase = gourou-bin pkgdesc = Download and decrypt adobe encrypted (acsm) pdf and epub files pkgver = 0.8.1 - pkgrel = 3 + pkgrel = 4 url = https://indefero.soutade.fr/p/libgourou arch = x86_64 license = LGPL3 + makedepends = patchelf depends = glibc depends = gcc-libs depends = zlib @@ -3,12 +3,13 @@ _pkgname=gourou pkgname="${_pkgname}-bin" __pkgname="lib${_pkgname}" pkgver=0.8.1 -pkgrel=3 +pkgrel=4 pkgdesc="Download and decrypt adobe encrypted (acsm) pdf and epub files" arch=('x86_64') license=('LGPL3') url="https://indefero.soutade.fr/p/libgourou" depends=(glibc gcc-libs zlib libzip openssl) +makedepends=(patchelf) conflicts=(gourou-git) provides=("gourou=${pkgver}") options=(!strip) @@ -20,7 +21,9 @@ package() { install -d $pkgdir/{usr/bin/,usr/lib/} cp -a --no-preserve=ownership {acsmdownloader,adept_activate,adept_remove} "$pkgdir"/usr/bin - # super ugly but it works! - sed -i 's/libzip\.so\.4/libzip.so.5/' "$pkgdir"/usr/bin/* + # somewhat cleaner + for _exec in "$pkgdir"/usr/bin/*; do + patchelf --replace-needed libzip.so.4 libzip.so.5 "$_exec" + done cp -a --no-preserve=ownership *.so $pkgdir/usr/lib } |