Commit f24e9cd9 authored by zveronline's avatar zveronline

first

parents
Pipeline #137 failed with stages
# Maintainer: Platon Pronko < platon7pronko at gmail dot com >
pkgname="cryptopro-csp-k1"
pkgver=4.0.9971
# pkgver is not allowed to contain forward slashes
_pkgver_patch="5"
_pkgver="$pkgver-$_pkgver_patch"
pkgrel=0
pkgdesc='CryptoPro CSP 4.0'
arch=('x86_64')
url='https://cryptopro.ru/products/cryptopro-csp'
license=('proprietary')
depends=(
'glibc'
'gcc-libs'
'gtk2'
'gdk-pixbuf2'
'pango'
'atk'
'glib2'
'curl'
'pcsclite'
'libxml2'
'ccid'
'acsccid'
)
makedepends=(
'libarchive'
)
# Direct links to sources download:
# https://www.cryptopro.ru/sites/default/files/private/csp/50/11455/linux-amd64.tgz
# https://www.cryptopro.ru/sites/default/files/products/cades/current_release_2_0/cades_linux_amd64.tar.gz
source=(
'linux-amd64.tgz'
'cades_linux_amd64.tar.gz'
)
md5sums=(
'c8202c873db383ef11431c9bedd00277'
'e0fa664ce9fba1b38e8a6c2b3e0c419c'
)
install=cryptopro-csp-k1.install
options=(!strip)
package() {
cd "$srcdir/linux-amd64"
bsdtar -xf "lsb-cprocsp-base-${_pkgver}.noarch.rpm" -C "$pkgdir"
bsdtar -xf "lsb-cprocsp-rdr-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "lsb-cprocsp-kc1-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "lsb-cprocsp-kc2-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "lsb-cprocsp-capilite-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "lsb-cprocsp-ca-certs-${_pkgver}.noarch.rpm" -C "$pkgdir"
bsdtar -xf "lsb-cprocsp-pkcs11-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "cprocsp-rdr-gui-gtk-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "cprocsp-rdr-pcsc-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "cprocsp-rsa-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "cprocsp-rdr-rutoken-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "cprocsp-rdr-jacarta-64-3.6.408.706-4.x86_64.rpm" -C "$pkgdir"
bsdtar -xf "ifd-rutokens-1.0.1-1.x86_64.rpm" -C "$pkgdir"
cd "$srcdir/cades_linux_amd64"
bsdtar -xf "cprocsp-pki-2.0.0-amd64-cades.rpm" -C "$pkgdir"
bsdtar -xf "cprocsp-pki-2.0.0-amd64-plugin.rpm" -C "$pkgdir"
rm -r "$pkgdir/etc/init.d/"
mv "$pkgdir/tmp/" "$pkgdir/opt/cprocsp/tmp/"
rm -r "$pkgdir/usr/lib64/"
mkdir -p "$pkgdir/etc/ld.so.conf.d/"
echo "/opt/cprocsp/lib/amd64" > "$pkgdir/etc/ld.so.conf.d/cryptopro-csp-k1.conf"
}
This diff is collapsed.
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment