summaryrefslogtreecommitdiff
path: root/pcr/dynamips/PKGBUILD
diff options
context:
space:
mode:
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: