GNS3/dynamips

Failed PKGBUILD for yay AUR

DarkRedman opened this issue · 2 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 <hyacinthe.cartiaux@free.fr>
# 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 You should address current maintainer of the package on aur page for that.

Indeed, sorry we don't create packages for Manjaro.