summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de0c7d7c4e5294df5955dfe4dc1236c72f91d685 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: taotieren <admin@taotieren.com>

pkgname=qucs-s-git
pkgver=2.1.0.r148.gb135929d
pkgrel=1
epoch=
pkgdesc="Qucs-S provides GUI for different circuit simulation kernels. "
arch=('x86_64')
url="https://github.com/ra3xdh/qucs_s"
license=('GPL-2.0-only')
_qt=qt6
groups=()
depends=($_qt-tools)
makedepends=(cmake
    ninja
    git
    autoconf
    automake
    perl-gd
    perl-xml-libxml
    gperf
    libtool
    flex
    bison
    $_qt-svg)
optdepends=('ngspice: recommended simulation backend'
    'qucs: for Qucsator simulation backend'
    'freehdl: to permit digital circuit simulation'
    'asco: to enable circuit optimization')
checkdepends=()
optdepends=()
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
replaces=()
backup=()
options=('!makeflags')
install=
changelog=
source=("${pkgname%-git}::git+${url}.git")
noextract=()
sha256sums=('SKIP')
validpgpkeys=()

pkgver() {
    cd "${srcdir}/${pkgname%-git}"
    git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare()
{
    git -C "${srcdir}/${pkgname%-git}" clean -dfx
}

build() {
    cd "${srcdir}/${pkgname%-git}"

    cmake -D CMAKE_INSTALL_PREFIX=/usr \
          -B build \
          -G Ninja

    ninja -C build
}

package() {
    cd "${srcdir}/${pkgname%-git}"
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
}