summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27569d2ddd0e156b9cbad633aa5b825d56a4bfd5 (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
# Maintainer: Felix <felix@salfelder.org>
# Submitter: Felix

_pkgname=qucs
pkgname=$_pkgname-git
pkgver=r3680.c390574
pkgrel=1
pkgdesc="An integrated circuit simulator GUI (develop branch)"
arch=('x86_64' 'i686')
url="http://github.com/qucs/qucs"
license=('GPLv3+')
options=(!makeflags)
depends=('qt5-tools' 'qt5-script' )
makedepends=('git' 'autoconf' 'automake' 'perl-gd' 'perl-xml-libxml' 'gperf' 'libtool')
optdepends=('freehdl: status unknown'
            'qucsator-git: to enable circuit simulation'
            'gnucsator-git: to enable circuit simulation')
source=(git+https://github.com/qucs/qucs#branch=develop)
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd $_pkgname
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  make -C $_pkgname DESTDIR="$pkgdir" install
}