blob: 7ecb64650bb4087d7a33f8dee3c5c1ca027c1707 (
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
|
#
# PKGBUILD for minipro (unstable)
#
# Maintainer: uffe _.at._ uffe _.dot._ org
#
pkgname=minipro-git
pkgver=0.7.2.r67.gb7bfb14
pkgrel=1
pkg_name_ver="${pkgname}-${pkgver}"
pkgdesc="Open source chip programming utility for autoelectric.cn MiniPro TL866xx series (TL866CS, TL866A, and TL866II+)"
url="https://gitlab.com/DavidGriffith/minipro"
arch=("i686" "x86_64")
license=("GPL-3.0-only")
makedepends=("git")
depends=("libusb" "libb64")
optdepends=("srecord: Motorola srecord format")
source=(${pkgname}::git+https://gitlab.com/DavidGriffith/minipro.git)
conflicts=("minipro")
provides=("minipro")
sha256sums=('SKIP')
pkgver()
{
cd "${srcdir}/${pkgname}"
( set -o pipefail
git describe --long --tags 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}/${pkgname}"
make PREFIX="/usr"
}
package()
{
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" PREFIX="/usr" COMPLETIONS_DIR="/usr/share/bash-completion/completions" install
}
# vim: ts=2 sw=2 et:
#
# EOF
#
|