# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=dynamips pkgver=0.2.16 pkgrel=1 pkgdesc="Cisco router emulator" url="https://github.com/GNS3/dynamips" arch="all" license="GPL2" makedepends="cmake libpcap-dev libelf-dev linux-headers" subpackages="$pkgname-doc" source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz s390x-support.patch" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" if test $CARCH == x86_64; then export DYNAMIPS_ARCH=amd64 fi export CFLAGS="$CFLAGS -Wno-enum-compare" export CXXFLAGS="$CXXFLAGS -Wno-enum-compare" cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr } package() { cd "$builddir" make DESTDIR=${pkgdir} install } sha512sums="d2e719f3bd7d6e54ec49d0558645a3baa4cf77e0a911e069078463c7cafa391b6400a5aa7661744022b722d3e16ef07323056280df3b4121fd09eb64a7a1aa49 dynamips-0.2.16.tar.gz 151f9c7d53c0edd9d300b3e84ce50d500018a533d6d131609ac0c25244db640d65d2322104c126e7c0e311cc0b197c07976f21fa28909a92d48cf31b6208431b s390x-support.patch"