Jump to content

Recommended Posts

Posted
Hi, could you please help me with PKGBUILD in Arch Linux?
I'm getting the below error:
-------------------------------------------------------------------------
bsdtar: Error opening archive: Failed to open 'data.tar.xz'
==> ERROR: A failure occurred in package().
    Aborting...
-------------------------------------------------------------------------

# Original Maintainer: AO Kaspersky Lab <*****@*****.tld>
# Maintainer: visious <*****@*****.tld>

# Initial configuration of Network Agent settings
# https://support.kaspersky.com/KES4Linux/10SP1/en-US/161236.htm

pkgname=klnagent64
pkgver=14.0.0.4490
pkgrel=1
pkgdesc="The Kaspersky Network Agent"
arch=('x86_64')
url="https://support.kaspersky.com/kes11linux"
license=('AO Kaspersky Lab')
conflicts=(klnagent)
replaces=('klnagent' 'klnagent64-astra')
options=('!emptydirs' '!strip')
source=("https://aes.s.kaspersky-labs.com/administrationkit/ksc10/${pkgver}/english-20220704_113020/3538343535317c44454c7c31/${pkgname}_14.0.0-4490_amd64.deb")
sha256sums=('a20d8eaf707d7b07b8bddb266507cd110cf970ceadfc36684259d87aa53cf597')

package() {
    echo "  -> Extracting the data.tar.xz..."
    bsdtar -xf data.tar.xz -C "$pkgdir/"
}

  • 2 weeks later...
Posted

Here is a second thought.

I'm getting the below error:

-------------------------------------------------------------------------

PKGBUILD: line 20: cd: too many arguments

-------------------------------------------------------------------------

# Original Maintainer: AO Kaspersky Lab <*****@*****.tld>
# Maintainer: visious <*****@*****.tld>

# Initial configuration of Network Agent settings
# https://support.kaspersky.com/KES4Linux/10SP1/en-US/161236.htm

pkgname=klnagent64
pkgver=14.0.0.4490
pkgrel=1
pkgdesc="The Kaspersky Network Agent"
arch=('x86_64')
url="https://support.kaspersky.com/kes11linux"
license=('AO Kaspersky Lab')
conflicts=(klnagent)
replaces=('klnagent' 'klnagent64-astra')
source=("https://aes.s.kaspersky-labs.com/administrationkit/ksc10/${pkgver}/english-20220704_113020/3538343535307c44454c7c31/${pkgname}-14.0.0-4490.x86_64.rpm")
sha256sums=('130634651120cd2603e677f587f1bdb6f7f18d82f59b62dde95d18aa441776e4')

package() {
  cd $pkgdir
  bsdtar -xf $srcdir/${pkgname}-${pkgver}.x86_64.rpm
}

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...