updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / dynamips-community / PKGBUILD
blob42f8af393e52059041f8a23ec26a4c9813987f93
1 # Maintainer: Tarjaizaid <tarjaizaid@gmail.com>
2 pkgname=dynamips-community
3 pkgver=0.2.8RC3
4 pkgrel=1
5 pkgdesc="Dynamips version develloped by gns3 team"
6 arch=('i686' 'x86_64')
7 url="http://www.gns3.net/dynamips"
8 license=('GPL')
9 conflicts=(dynamips)
10 source=(http://downloads.sourceforge.net/gns-3/dynamips-0.2.8-RC3-community.tar.gz)
11 sha1sums=(ed7138859e6bc381ae0cf0d2620b32099845847c)
13 build() {
14   if test "$CARCH" == x86_64; then
15     export DYNAMIPS_ARCH=amd64
16   fi
17   cd "$srcdir/dynamips-0.2.8-RC3-community"
18   make
21 package() {
22   cd "$srcdir/dynamips-0.2.8-RC3-community"
23   make DESTDIR="$pkgdir/usr" install
24   rm -r "$pkgdir/usr/etc"
25   install -D -m 644 "$pkgdir/usr/man/man1/dynamips.1" "$pkgdir/usr/share/man/man1/dynamips.1"
26   install -D -m 644 "$pkgdir/usr/man/man1/nvram_export.1" "$pkgdir/usr/share/man/man1/nvram_export.1"
27   install -D -m 644 "$pkgdir/usr/man/man7/hypervisor_mode.7" "$pkgdir/usr/share/man/man7/hypervisor_mode.7"
28   rm -r "$pkgdir/usr/man/"