blob: 809ab1da742fdc32556854c0577c34729cd44c5a (
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
|
# Maintainer: Michael Riegert <michael at eowyn net>
pkgname=ecpprog-git
pkgver=r28.2b3e8ea
pkgrel=1
pkgdesc="A basic driver for FTDI based JTAG probes to program ECP5 FPGAs"
arch=('x86_64')
url="https://github.com/gregdavill/ecpprog"
license=('ISC')
depends=('libftdi')
makedepends=('git')
provides=('ecpprog')
conflicts=('ecpprog')
source=("$pkgname::git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
(
echo 'r'
git rev-list HEAD --count
echo '.'
git rev-parse --short master
) | tr -d '\n'
}
build() {
cd "$pkgname"/ecpprog
make
}
package() {
cd "$pkgname"/ecpprog
DESTDIR="$pkgdir" PREFIX="/usr" make install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}/${pkgname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/license"
}
|