summaryrefslogtreecommitdiff
path: root/pcr/dynamips/PKGBUILD
diff options
context:
space:
mode:
authorcodex <aurelien@hackers.camp>2014-12-11 18:33:56 +0100
committercodex <aurelien@hackers.camp>2014-12-11 18:33:56 +0100
commit39e618c6933e28a1cf2939ec11c378e84d17cec6 (patch)
treecb0cb7894b9bc100437a15ef2c7855242aa384ad /pcr/dynamips/PKGBUILD
parent67e18334ff3640ccef52b87f0d50b8e6c1f92272 (diff)
downloadabslibre-39e618c6933e28a1cf2939ec11c378e84d17cec6.tar.gz
abslibre-39e618c6933e28a1cf2939ec11c378e84d17cec6.tar.bz2
abslibre-39e618c6933e28a1cf2939ec11c378e84d17cec6.zip
Cisco router emulator.
Diffstat (limited to 'pcr/dynamips/PKGBUILD')
-rw-r--r--pcr/dynamips/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/pcr/dynamips/PKGBUILD b/pcr/dynamips/PKGBUILD
new file mode 100644
index 000000000..a4e6008e7
--- /dev/null
+++ b/pcr/dynamips/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
+# Contributor: korjjj <korjjj+aur@gmail.com>
+
+pkgname=dynamips
+pkgver=0.2.14
+pkgrel=1
+pkgdesc='Cisco router emulator.'
+arch=('i686' 'x86_64')
+url='http://www.gns3.net/dynamips'
+license=('GPL2')
+depends=(libpcap util-linux elfutils)
+makedepends=('cmake')
+source=("https://github.com/GNS3/dynamips/archive/v${pkgver}.tar.gz")
+
+build() {
+ if test "$CARCH" == x86_64; then
+ export DYNAMIPS_ARCH=amd64
+ fi
+ cd ${srcdir}/${pkgname}-${pkgver}
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
+
+# vim:set ts=2 sw=2 et: