summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf3f9757438e5c3776310e54e33f477034b2eb96 (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: Tiago Koji Castro Shibata <tiago.shibata@gmail.com>
pkgname=archc-git
pkgver=2.4.1.r71.gf0b697c
pkgrel=1
pkgdesc='A powerful and modern open-source architecture description language'
arch=('x86_64' 'i686')
url='https://github.com/ArchC/ArchC'
license=('GPL')
depends=('bash')
makedepends=('git' 'systemc')
provides=('archc')
conflicts=('archc')
source=('git+https://github.com/ArchC/ArchC.git')
md5sums=('SKIP')

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

build() {
  cd ArchC
  ./autogen.sh
  ./configure --prefix=$pkgdir/usr
  make
}

package() {
  cd ArchC
  make install
  # Move configuration files to /etc
  mv $pkgdir/{usr/,}etc
}