blob: fd6ef8dd7cf01b228b286b895f2a454761aab4c6 (
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
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Cody Schafer <aur at codyps.com>
pkgname=ftx-prog-git
pkgver=0.3.r0.g68e915d
pkgrel=1
pkgdesc="A Linux command-line alternative to the FTProg utility for FTDI's FT-X series of USB interfaces."
arch=(x86_64)
url="https://github.com/richardeoin/ftx-prog"
license=('GPL')
groups=()
depends=(libftdi libusb libftdi-compat)
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/richardeoin/ftx-prog.git')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
prepare() {
cd "$srcdir/${pkgname%-git}"
#patch -p1 -i "$srcdir/${pkgname%-VCS}.patch"
}
_run() {
echo "$@"
"$@"
}
build() {
cd "$srcdir/${pkgname%-git}"
#./autogen.sh
#./configure --prefix=/usr
_run cc ${CFLAGS} ftx_prog.c -o ftx_prog ${LDFLAGS} -lusb -lftdi
}
check() {
cd "$srcdir/${pkgname%-git}"
#make -k check
}
package() {
cd "$srcdir/${pkgname%-git}"
mkdir -p $pkgdir/usr/bin
install -m755 ftx_prog $pkgdir/usr/bin
mkdir -p "$pkgdir/usr/share/doc/${pkgname%-git}"
install -m644 README.md "$pkgdir/usr/share/doc/${pkgname%-git}"
}
|