diff options
Diffstat (limited to 'community/ngspice/PKGBUILD')
-rw-r--r-- | community/ngspice/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/ngspice/PKGBUILD b/community/ngspice/PKGBUILD new file mode 100644 index 000000000..e55415fa4 --- /dev/null +++ b/community/ngspice/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 88376 2013-04-16 21:34:14Z kkeen $ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: Abhishek Dasgupta <abhidg@gmail.com> +# Contributor: Jason Taylor <jftaylor21@gmail.com> +# Contributor: Luis Henrique <lmello.009@gmail.com> + +pkgname=ngspice +pkgver=25 +pkgrel=2 +pkgdesc='Mixed-level/Mixed-signal circuit simulator based on Spice3f5, Ciber1b1, and Xspice.' +url='http://ngspice.sourceforge.net' +license=('BSD') +arch=('i686' 'x86_64') +depends=('libxaw' 'libedit' 'gcc-libs') +source=("http://downloads.sourceforge.net/project/$pkgname/ng-spice-rework/$pkgver/$pkgname-$pkgver.tar.gz" + "http://downloads.sourceforge.net/project/$pkgname/ng-spice-rework/$pkgver/$pkgname-doc-$pkgver.tar.gz") +sha1sums=('745c3c32385b7d5c808836e393fe7699f8568860' + 'db7a1de7553b4e0d454e6c99b4371677eaf130aa') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-readline=yes \ + --enable-xspice \ + --enable-cider \ + --enable-openmp + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="$pkgdir" install + install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -D -m644 "$srcdir/$pkgname-doc-$pkgver/manual.pdf" "$pkgdir/usr/share/doc/$pkgname/manual.pdf" +} |