summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42727a467a565333cb16cf63ada0a19ca9711a14 (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
# Maintainer: David Adler <d.adler@posteo.de>
# Maintainer: Felix Salfelder <felix aet salfelder dott org>

_pkgname=gnucap
pkgname=$_pkgname-git
pkgver=20240702.dev.r0.g86ceba7
pkgrel=1
pkgdesc="GNU Circuit Analysis Package (develop branch)"
arch=('x86_64')
url="http://gnucap.org/"
license=('GPL')
depends=('readline' 'termcap')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+git://git.sv.gnu.org/$_pkgname.git#branch=develop")
md5sums=('SKIP')

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

prepare(){
    cd $_pkgname
    sed -i 's#INSTALL_SYSCONF_DIR = $(PREFIX)/etc#INSTALL_SYSCONF_DIR = /etc#' main/Make1
}

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

package() {
    cd $_pkgname
    make DESTDIR="$pkgdir/" install
}