summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d3866d98b17d01a88124908e4a773db418a46d4 (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
45
# Maintainer: xiretza <xiretza+aur@gmail.com>
# Contributor: Uffe Jakobsen <uffe@uffe.org>
#
pkgname=xc3sprog-svn
pkgver=0.r795
pkgrel=1
pkgdesc="Utilities for programming Xilinx FPGAs, CPLDs, and EEPROMs with the Xilinx Parallel Cable and other JTAG adapters"
arch=('i686' 'x86_64')
url="http://xc3sprog.sourceforge.net"
license=('GPL2')
depends=('libusb' 'libusb-compat' 'libftdi' 'libftdi-compat' 'libftd2xx')
makedepends=('cmake' 'subversion')
provides=('xc3sprog')
conflicts=('xc3sprog')
source=(svn+http://svn.code.sf.net/p/xc3sprog/code/trunk)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/trunk"
  local ver="$(svnversion)"
  printf "0.r%s" "${ver//[[:alpha:]]}"
}

prepare() {
  cd "$srcdir/trunk"
}

build() {
  cd "$srcdir/trunk"
  mkdir _build
  cd _build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

check() {
  cd "$srcdir/trunk/_build"
}

package() {
  cd "$srcdir/trunk/_build"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/trunk"
  install -Dm0644 xc3sprog.1 "$pkgdir/usr/share/man/man1/xc3sprog.1"
}