diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 12:08:42 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 13:00:04 +0000 |
commit | 806a7604e6f4b1247cea0893a411bed20c9efc33 (patch) | |
tree | 1c9c79102bc26b7eb4829bf753c45220a97c767a /community | |
parent | b2230ae7ef8cd91d7a314571cb9ac5e0f74a147e (diff) | |
download | aports-806a7604e6f4b1247cea0893a411bed20c9efc33.tar.bz2 aports-806a7604e6f4b1247cea0893a411bed20c9efc33.tar.xz |
community/dynamips: moved from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/dynamips/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/dynamips/APKBUILD b/community/dynamips/APKBUILD new file mode 100644 index 0000000000..0de3f72343 --- /dev/null +++ b/community/dynamips/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=dynamips +pkgver=0.2.16 +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 util-linux-dev" +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="4b4fa938f384ed2a229d96c5e2ed286e dynamips-0.2.16.tar.gz" +sha256sums="0fcf18d701898a77cb589bd9bad16dde436ac1ccb87516fefe07d09de1a196c0 dynamips-0.2.16.tar.gz" +sha512sums="d2e719f3bd7d6e54ec49d0558645a3baa4cf77e0a911e069078463c7cafa391b6400a5aa7661744022b722d3e16ef07323056280df3b4121fd09eb64a7a1aa49 dynamips-0.2.16.tar.gz" |