summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d78e4f390f66036106e776419b339290f826459 (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
# Maintainer: nem <nem at posteo dot net>
# Submitter: nem <nem at posteo dot net> 

pkgname=adms-git
pkgver=2.3.4.r29.g9c5bd52
pkgrel=1
pkgdesc="ADMS is a codegenerator for the VERILOG-A(MS) language"
arch=('x86_64' 'i686')
url="https://github.com/qucs/adms"
license=('GPL')
depends=('glibc')
makedepends=('git' 'autoconf' 'automake' 'flex' 'bison' 'perl-gd' 'perl-xml-libxml')
options=(!makeflags)
source=(git+https://github.com/qucs/adms)
md5sums=('SKIP')

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

build() {
  cd adms 
  ./bootstrap.sh
  ./configure --enable-maintainer-mode --prefix=/usr
  make
}

package() {
  cd adms 
  make DESTDIR="$pkgdir" install

}