summaryrefslogtreecommitdiff
path: root/pcr/dynamips/PKGBUILD
blob: a4e6008e767f285733d16c3e2e45b03cb06fc51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
# Contributor: korjjj <korjjj+aur@gmail.com>

pkgname=dynamips
pkgver=0.2.14
pkgrel=1
pkgdesc='Cisco router emulator.'
arch=('i686' 'x86_64')
url='http://www.gns3.net/dynamips'
license=('GPL2')
depends=(libpcap util-linux elfutils)
makedepends=('cmake')
source=("https://github.com/GNS3/dynamips/archive/v${pkgver}.tar.gz")

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 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

# vim:set ts=2 sw=2 et: