v4.11.4-4

This commit is contained in:
Andrey Kolchenko 2025-12-10 16:22:25 +03:00
parent 9878bb88ab
commit ce6d63ec00
2 changed files with 14 additions and 6 deletions

View file

@ -1,7 +1,7 @@
pkgbase = rutoken-plugin
pkgdesc = The Rutoken plugin is necessary for connecting USB devices with the browser, it allows you to identify devices and work with them.
pkgver = 4.11.4
pkgrel = 3
pkgrel = 4
url = https://www.rutoken.ru/support/download/rutoken-plugin/
arch = i686
arch = x86_64
@ -12,6 +12,7 @@ pkgbase = rutoken-plugin
makedepends = coreutils
makedepends = bash
depends = rutoken-pkcs
depends = rutoken-connect
options = !strip
source_i686 = rutoken-plugin-4.11.4-i686.rpm::https://download.rutoken.ru/Rutoken_Plugin/4.11.4.0/Linux/libnpRutokenPlugin-4.11.4-1.i686.rpm
sha256sums_i686 = 8374661e6af98537d3eedf321adb582ac849aa6c8746fbb794ad31234293effb

View file

@ -2,12 +2,12 @@
pkgname=rutoken-plugin
pkgver=4.11.4
pkgrel=3
pkgrel=4
pkgdesc="The Rutoken plugin is necessary for connecting USB devices with the browser, it allows you to identify devices and work with them."
arch=('i686' 'x86_64')
url="https://www.rutoken.ru/support/download/rutoken-plugin/"
license=('custom:rutoken-plugin')
depends=('rutoken-pkcs')
depends=('rutoken-pkcs' 'rutoken-connect')
makedepends=('findutils' 'sed' 'grep' 'coreutils' 'bash')
options=(!strip)
@ -20,9 +20,16 @@ sha256sums_x86_64=('01876a9a51e30476a40b92061130e388921e51aab90824c17001d0e6cb6e
package() {
cp -r "${srcdir}/usr/lib64/mozilla/native-messaging-hosts" "${srcdir}/usr/lib/mozilla/"
rm -rf "${srcdir}/usr/lib64"
rm -rf "${srcdir}/usr/lib/mozilla/plugins/pcache"
rm -f "${srcdir}/usr/lib/mozilla/plugins/librtpkcs11ecp.so"
ln -s /opt/aktivco/rutokenconnect/librtpkcs11ecp.so "${srcdir}/usr/lib/mozilla/plugins/librtpkcs11ecp.so"
rm -f "${srcdir}/opt/aktivco/rutokenplugin/librtpkcs11ecp.so"
find "${srcdir}" -type d | sed "s#^${srcdir}#${pkgdir}#g" | tail -n +2 | xargs install -d
eval $(find ${srcdir} -type f -exec bash -c 'echo install \"{}\" \"@$(dirname {})\"\;' \; | sed "s#@${srcdir}#${pkgdir}#g")
eval $(find ${srcdir} -type l -exec bash -c 'echo ln -s \"$(readlink {})\" \"@{}\"\;' \; | grep -v '.rpm' | sed "s#@${srcdir}#${pkgdir}#g")
install -Dm644 "${srcdir}/usr/share/doc/rutokenplugin/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -rf "${srcdir}/usr/share/"
for dir in 'etc' 'usr' 'opt'
do
cp -a "${srcdir}/${dir}" "${pkgdir}"
done
}