summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d74655bc31565141dc96b007af1f34f1f24aef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: nem <nem at posteo dot net>
# Submitter: ClemensFMN

pkgname=qucs-git
pkgver=0.0.18.r1207.g9d924ca
pkgrel=1
pkgdesc="An integrated circuit simulator with a graphical user interface. (qt4 git version)"
arch=('x86_64' 'i686')
url="http://github.com/qucs/qucs"
license=('GPL')
options=(!makeflags)
depends=('qt4' 'adms-git')
makedepends=('git' 'autoconf' 'automake' 'perl-gd' 'perl-xml-libxml' 'gperf' 'libtool' 'flex' 'bison')
optdepends=('freehdl: to permit digital circuit simulation'
            'asco: to enable circuit optimization')
source=(git+https://github.com/qucs/qucs)
md5sums=('SKIP')

pkgver() {
  cd qucs
  git describe --long | sed -r 's/^qucs-//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd $srcdir/qucs/qucs
  ./bootstrap
  ./configure --enable-maintainer-mode --prefix=/usr --with-mkadms=/usr/bin/admsXml
  make

  cd $srcdir/qucs/qucs-core
  ./bootstrap
  ./configure --enable-maintainer-mode --prefix=/usr --with-mkadms=/usr/bin/admsXml
  make
}

package() {
  cd $srcdir/qucs/qucs
  make DESTDIR="$pkgdir" install

  cd $srcdir/qucs/qucs-core
  make DESTDIR="$pkgdir" install
}