blob: 47a213e81d18b66e4a0c14c67f7a5096e40fc342 (
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: Evgeny Shvits <tony.darko@gmail.com>
pkgname=ch341prog-git
_gitname=ch341prog
pkgver=r29.379ef13
pkgrel=1
pkgdesc="A simple command line tool (programmer) interfacing with ch341a"
arch=('i686' 'x86_64')
url="https://github.com/setarcos/ch341prog.git"
license=('GPL')
depends=('libusb>=1')
makedepends=('git')
source=("${_gitname}::git+https://github.com/setarcos/ch341prog.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
# Get the version number
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${_gitname}"
make
}
package() {
cd "${srcdir}/${_gitname}"
# Install the program
install -Dm755 ch341prog "${pkgdir}/usr/bin/ch341prog"
}
# vim:set ft=sh ts=2 sw=2 et:
|