aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 13:00:04 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 13:59:38 -0300
commit6ee5c144dc93436feb2cd0aa086eeb695d552690 (patch)
tree31293165778ede790c3c5374a5a765182bb4aee5
parent64514ec4e38883910239d9db884f12b7527d9850 (diff)
downloadaports-6ee5c144dc93436feb2cd0aa086eeb695d552690.tar.gz
aports-6ee5c144dc93436feb2cd0aa086eeb695d552690.tar.bz2
aports-6ee5c144dc93436feb2cd0aa086eeb695d552690.tar.xz
community/dynamips: modernize
-rw-r--r--community/dynamips/APKBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/community/dynamips/APKBUILD b/community/dynamips/APKBUILD
index 7b2306a20d..b86c539165 100644
--- a/community/dynamips/APKBUILD
+++ b/community/dynamips/APKBUILD
@@ -2,37 +2,35 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dynamips
pkgver=0.2.21
-pkgrel=0
+pkgrel=1
pkgdesc="Cisco router emulator"
url="https://github.com/GNS3/dynamips"
arch="all"
license="GPL-2.0"
-makedepends="cmake libpcap-dev elfutils-dev linux-headers paxmark libnsl-dev"
+makedepends="cmake libpcap-dev elfutils-dev linux-headers libnsl-dev"
subpackages="$pkgname-doc"
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/GNS3/${pkgname}/archive/v${pkgver}.tar.gz
+source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/dynamips/archive/v$pkgver.tar.gz
detect-byte-order.patch"
-builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$builddir"
sed -e "s:^set ( DYNAMIPS_FLAGS:#&:" -i cmake/dependencies.cmake
default_prepare
}
build() {
- cd "$builddir"
- if test $CARCH == x86_64; then
+ if [ $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
+ cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr
+ make -C build
}
package() {
- cd "$builddir"
- make DESTDIR=${pkgdir} install
- paxmark -m "$pkgdir"/usr/bin/dynamips
+ make -C build DESTDIR="$pkgdir" install
}
sha512sums="c7251963897b65ed5696f47f03be727cea79fe2245850c86fa6b4d8718afa10002b1e39bccefe1c7f2ba86fe6b8f52fe8663ee34f72ca3d9f846522b9b9b4d29 dynamips-0.2.21.tar.gz