From 4f4e5e8aa367ba692dd7c9490a224d36f5460369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=BB=D1=87=D0=B5=D0=BD=D0=BA=D0=BE=20=D0=90?= =?UTF-8?q?=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?= Date: Wed, 3 Jul 2024 13:17:19 +0300 Subject: [PATCH] v4.9.1-2 --- .SRCINFO | 5 +++-- PKGBUILD | 12 ++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index fe0696bab745..ad38196fddee 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,16 +1,17 @@ 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.9.1 - pkgrel = 1 + pkgrel = 2 url = https://www.rutoken.ru/support/download/rutoken-plugin/ arch = i686 arch = x86_64 - license = unknown + license = proprietary makedepends = findutils makedepends = sed makedepends = grep makedepends = coreutils makedepends = bash + depends = rutoken-pkcs source_i686 = rutoken-plugin-4.9.1-i686.rpm::https://download.rutoken.ru/Rutoken_Plugin/4.9.1.0/Linux/libnpRutokenPlugin-4.9.1-1.i686.rpm sha256sums_i686 = 4732b0912b831fffe243e6fc80b4c40f5aea0db7c0f9eeffed04cb54d5b72800 source_x86_64 = rutoken-plugin-4.9.1-x86_64.rpm::https://download.rutoken.ru/Rutoken_Plugin/4.9.1.0/Linux/libnpRutokenPlugin-4.9.1-1.x86_64.rpm diff --git a/PKGBUILD b/PKGBUILD index f2fd5aee2452..fa05b61fbd4b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,12 +2,13 @@ pkgname=rutoken-plugin pkgver=4.9.1 -pkgrel=1 +pkgrel=2 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=('unknown') -makedepends=("findutils" "sed" "grep" "coreutils" "bash") +license=('proprietary') +depends=('rutoken-pkcs') +makedepends=('findutils' 'sed' 'grep' 'coreutils' 'bash') source_x86_64=("${pkgname}-${pkgver}-x86_64.rpm::https://download.rutoken.ru/Rutoken_Plugin/${pkgver}.0/Linux/libnpRutokenPlugin-${pkgver}-1.x86_64.rpm") sha256sums_x86_64=("144e4bc15fa4c0e2a2504061ff05b3221dd5fb1d9ea863b4b06f8e2670836cb6") @@ -15,8 +16,11 @@ source_i686=("${pkgname}-${pkgver}-i686.rpm::https://download.rutoken.ru/Rutoken sha256sums_i686=("4732b0912b831fffe243e6fc80b4c40f5aea0db7c0f9eeffed04cb54d5b72800") package() { - mv "${srcdir}/usr/lib64/mozilla/native-messaging-hosts" "${srcdir}/usr/lib/mozilla/" + cp -r "${srcdir}/usr/lib64/mozilla/native-messaging-hosts" "${srcdir}/usr/lib/mozilla/" rm -rf "${srcdir}/usr/lib64" + rm -f "${srcdir}/opt/aktivco/rutokenplugin/librtpkcs11ecp.so" + ln -s /opt/aktivco/rutokenecp/x86_64/librtpkcs11ecp.so "${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")