aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-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"