aboutsummaryrefslogtreecommitdiffstats
path: root/community/dynamips/APKBUILD
blob: 7e8632185391027a468e12a7c001c50c443872d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
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"
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
}

md5sums="4b4fa938f384ed2a229d96c5e2ed286e  dynamips-0.2.16.tar.gz"
sha256sums="0fcf18d701898a77cb589bd9bad16dde436ac1ccb87516fefe07d09de1a196c0  dynamips-0.2.16.tar.gz"
sha512sums="d2e719f3bd7d6e54ec49d0558645a3baa4cf77e0a911e069078463c7cafa391b6400a5aa7661744022b722d3e16ef07323056280df3b4121fd09eb64a7a1aa49  dynamips-0.2.16.tar.gz"