summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86a7d32ecc9c3345e50aa76c214bb549fc336f08 (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
40
41
42
43
44
# Maintainer: Peter Ivanov <ivanovp@gmail.com>
# $Id: PKGBUILD 84937 2010-07-05 17:46:04Z eric $
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=papilio-loader-git
pkgver=20220326
pkgrel=1
pkgdesc="Bitstream loader for Papilio One FPGA board."
arch=("i686" "x86_64")
url="https://github.com/GadgetFactory/Papilio-Loader"
license=("GPL2" "LGPL2.1")
depends=(libftdi-compat)
makedepends=(git gcc)
#makedepends=(git gcc libftd2xx flex bison)
options=('!strip')
_gitname=Papilio-Loader
#source=(git+https://github.com/GadgetFactory/$_gitname.git)
source=(git+https://github.com/ivanovp/$_gitname.git)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git log -1 --format="%cd" --date=short | tr -d '-'
}

build() {
# msg "GIT checkout done or server timeout"
  cd "$srcdir/$_gitname/papilio-prog"
  if [ ! -f ./configure ]; then
    chmod +x ./autogen.sh
    ./autogen.sh
  fi
# ./configure --prefix=/usr CFLAGS="-Wno-error=unused-but-set-variable"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$_gitname/papilio-prog"
  make DESTDIR="$pkgdir" install
  install -d $pkgdir/usr/share/$pkgname
  cd "../Fpga"
  install -Dm644 *.bit $pkgdir/usr/share/$pkgname
}