summaryrefslogtreecommitdiff
path: root/pcr/arachne-pnr-git/PKGBUILD
blob: 228a07e3af3fcfbeeb66f276b896b504e80f42fe (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
# Maintainer(AUR): Sebastian Bøe <sebastianbooe@gmail.com>
# Maintainer: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
# parabola changes and rationale:
# - Added armv7h and i686 architectures support
pkgname=arachne-pnr-git
pkgrel=1
pkgver=r328.c40fb22
pkgdesc=" Place and route tool for FPGAs"
arch=('armv7h' 'i686' 'x86_64')
url="https://github.com/cseed/arachne-pnr"
license=('GPL2')
depends=('icestorm-git')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/cseed/arachne-pnr.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${pkgname%-git}"
  make ICEBOX=/usr/share/icebox PREFIX=/usr
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make ICEBOX=/usr/share/icebox PREFIX=$pkgdir/usr install
}