blob: 725a3972a356f2a4a459b57b3f2c053296a0bbbd (
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
|
# Maintainer: sanpe <sanpeqf@gmail.com>
pkgname=ch552isptool-git
_gitname=ch552isptool
pkgver=r3.c6b2ce8
pkgrel=1
pkgdesc="CH552 Programming tool for Boot-loader"
arch=('i686' 'x86_64')
url="https://github.com/platunus/ch552isptool.git"
license=('GPL')
makedepends=('git')
source=("${_gitname}::git+${url}")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
( 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 -Dm755 ch552isptool "${pkgdir}/usr/bin/ch552isptool"
}
|