summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f65f884b91dbcfa218a59dbfd5abf4931cab4e1 (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: Matyas Mehn <matyas.mehn at tum dot de>

_pkgname=hyp2mat
pkgname=hyp2mat-git
pkgver=20200722
pkgrel=1
pkgdesc="Utility to convert HyperLynx pcb files to matlab for electromagnetic simulation"
arch=("x86_64")
url="https://github.com/koendv/$_pkgname"
license=("LGPL3")
depends=("zlib")
makedepends=("help2man" "groff" "gengetopt")
source=("git+https://github.com/koendv/$_pkgname")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

prepare() {
  cd "${srcdir}/${_pkgname}"
  ./bootstrap.sh
}

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

package() {
  cd "${srcdir}/${_pkgname}"
  make install
}