aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dynamips/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-11-21 10:56:06 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-11-21 10:56:06 +0000
commitad43c70adcbf353052c5891538fafd5b66abe864 (patch)
tree1444b9825004e6ce3efd4d3e1f888e74a6309187 /testing/dynamips/APKBUILD
parent65f9b6d30d8f90762c972010d24210324cd77ead (diff)
downloadaports-ad43c70adcbf353052c5891538fafd5b66abe864.tar.bz2
aports-ad43c70adcbf353052c5891538fafd5b66abe864.tar.xz
testing/dynamips: new aport
Diffstat (limited to 'testing/dynamips/APKBUILD')
-rw-r--r--testing/dynamips/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/dynamips/APKBUILD b/testing/dynamips/APKBUILD
new file mode 100644
index 0000000000..34478d6238
--- /dev/null
+++ b/testing/dynamips/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=dynamips
+pkgver=0.2.15
+pkgrel=0
+pkgdesc="Cisco router emulator"
+url="https://github.com/GNS3/dynamips"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev cmake libpcap-dev libelf-dev linux-headers"
+install=""
+subpackages="$pkgname-doc"
+source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz"
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ if test $CARCH == x86_64; then
+ export DYNAMIPS_ARCH=amd64
+ fi
+ cmake ./ -DCMAKE_INSTALL_PREFIX:PATH=/usr
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR=${pkgdir} install
+}
+
+md5sums="d4559daf61674452b91ec24b4028a8c4 dynamips-0.2.15.tar.gz"
+sha256sums="4f77a88470069dccab391ce786b633061511593efbd0a9b895e5711325eceb36 dynamips-0.2.15.tar.gz"
+sha512sums="c46248c2803168676c2011e6b3ff4e68a90681c56fd655243d5aad652c8257701c37fdd770842e24830a95a748622e7a78d680e5564296856d06ef8daa215251 dynamips-0.2.15.tar.gz"