dynamips icon indicating copy to clipboard operation
dynamips copied to clipboard

Failed PKGBUILD for yay AUR

Open DarkRedman opened this issue 2 years ago • 1 comments

Hello I'm using Manjaro distribution

When I try to install the package I get "cd: too many arguments" it seems the PKGBUILD don't handle well if paths pkgdir or srcdir contains spaces so I put " on cd and make commands so it does work

modified PKGBUILD :

# Maintainer: Runnytu < runnytu at gmail dot com >
# Old Maintainer: Hyacinthe Cartiaux <[email protected]>
# Contributor: korjjj <korjjj+aur[at]gmail[dot]com>

pkgname=dynamips
pkgver=0.2.21
pkgrel=1
pkgdesc='Cisco router emulator.'
arch=('i686' 'x86_64')
url='https://github.com/GNS3/dynamips'
license=('GPL2')
groups=('gns3')
depends=('libpcap' 'elfutils')
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2')

build() {
  if test ${CARCH} == x86_64; then
    export DYNAMIPS_ARCH=amd64
  fi
  cd "${srcdir}/${pkgname}-${pkgver}"
  cmake ./ -DCMAKE_INSTALL_PREFIX:PATH=/usr
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 "${srcdir}/${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

DarkRedman avatar Mar 15 '22 02:03 DarkRedman

@DarkRedman You should address current maintainer of the package on aur page for that.

korjjj avatar Jul 16 '22 22:07 korjjj