This commit is contained in:
Колченко Андрей 2024-07-03 13:17:19 +03:00
parent d3c826fb64
commit 4f4e5e8aa3
2 changed files with 11 additions and 6 deletions

View file

@ -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

View file

@ -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")