diff options
Diffstat (limited to 'cisco/dynamips/PKGBUILD')
-rw-r--r-- | cisco/dynamips/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cisco/dynamips/PKGBUILD b/cisco/dynamips/PKGBUILD new file mode 100644 index 0000000..c56d8da --- /dev/null +++ b/cisco/dynamips/PKGBUILD @@ -0,0 +1,31 @@ +# Contributor: shild <sxp@bk.ru> +# Maintainer: Marcel Wysocki <maci@satgnu.net> + +pkgname=dynamips +pkgver=0.2.8 +pkgrel=1 +pkgdesc="Cisco 7200/3600 Simulator - emulates MIPS64 processor and CISCO hardware" +arch=('i686' 'x86_64') +url="http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator" +license=('GPL') +depends=('libpcap') +install=dynamips.install + +# libelf linked statically +makedepends=('libelf') + +source=(http://www.ipflow.utc.fr/dynamips/${pkgname}-${pkgver}-RC2.tar.gz + dynamips_0.2.8RC2.diff) + +md5sums=('8d12d28684d164fe3312a3fe43c84d2e' 'cfaa5420b02624bb79baee92d19d1037') +build() { + if [ "$CARCH" == "x86_64" ]; then + export DYNAMIPS_ARCH=amd64 + fi + + cd $startdir/src/$pkgname-$pkgver-RC2 + patch -p1 < ../dynamips_0.2.8RC2.diff + make || return 1 + make DESTDIR=$startdir/pkg/usr install + rmdir $startdir/pkg/usr/etc +} |