aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dynamips/APKBUILD
blob: 42bf25edc9d347940dc51dfeafd614c39b24037b (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
33
34
35
36
37
38
39
40
41
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 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="d4559daf61674452b91ec24b4028a8c4  dynamips-0.2.15.tar.gz"
sha256sums="4f77a88470069dccab391ce786b633061511593efbd0a9b895e5711325eceb36  dynamips-0.2.15.tar.gz"
sha512sums="c46248c2803168676c2011e6b3ff4e68a90681c56fd655243d5aad652c8257701c37fdd770842e24830a95a748622e7a78d680e5564296856d06ef8daa215251  dynamips-0.2.15.tar.gz"