summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27383a7a20584671c4af9fbec7690f14b9b3184b (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
68
69
70
71
72
73
# Maintainer: taotieren <admin@taotieren.com>

pkgname=qucs-rflayout
_name=Qucs-RFlayout
pkgver=2.1.2
pkgrel=1
epoch=
pkgdesc="Export Qucs RF schematics to KiCad layouts & OpenEMS scripts"
arch=($CARCH)
url="https://github.com/thomaslepoix/Qucs-RFlayout"
license=('GPL-3.0-only')
_qt=qt6
groups=()
depends=(
    gcc-libs
    glibc
    $_qt-base
)
makedepends=(
    cmake
    man-db
    mesa
    $_qt-tools
    texlive-meta
    ttf-lato
    gzip
)
checkdepends=(
    catch2
    lcov
)
optdepends=(
    'kicad: Electronic schematic and printed circuit board (PCB) design tools'
    'qucs: An integrated circuit simulator with a graphicaluser interface'
    'qucs-s: Qucs-S provides GUI for different circuit simulation kernels.'
    'openems: free and open electromagnetic field solver using the FDTD method'
    'pcb-rnd: free/open source, flexible, modular Printed Circuit Board editor'
    'inkscape: Professional vector graphics editor'
)
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
backup=()
options=()
install=
changelog=
source=("${_name}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
noextract=()
sha256sums=('752ee3e4e2d822174a0dbc49d6b5db55023f663e2d6e824905b1f64c44decc4b')
validpgpkeys=()

build() {
    cd "${srcdir}/${_name}-${pkgver}"

    cmake -DCMAKE_BUILD_TYPE='Release' \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -B build \
        -Wno-dev

    cmake --build build
    cmake --build build --target doc
    cmake --build build --target package
}

# check() {
#     cd "${srcdir}/${_name}-${pkgver}"
#     ctest --test-dir build --output-on-failure
# }

package() {
    cd "${srcdir}/${_name}-${pkgver}"
    DESTDIR="$pkgdir" cmake --install build
}