blob: 2d8b103b6fd42d283242040641cf5e3ff5e0bbac (
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: Darren Wu <$(base64 --decode <<<'ZGFycmVuMTk5NzA4MTBAZ21haWwuY29tCg==')>
pkgname="digilent-vivado-scripts-git"
pkgver=r58.fd7ce6b
pkgrel=2
pkgdesc="Tcl/python3 scripts to convert between git repos and Vivado/Xilinx SDK projects"
arch=('any')
url="https://github.com/Digilent/digilent-vivado-scripts"
license=("unknown")
depends=('xilinx-vivado-dummy')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/Digilent/${pkgname%-git}.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
if git describe &>/dev/null; then
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
elif git describe --tags &>/dev/null; then
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
else
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi
}
package() {
cd "$srcdir/${pkgname%-git}"
mkdir -p "$pkgdir/usr/share/digilent/${pkgname%-git}"
cp -r * "$pkgdir/usr/share/digilent/${pkgname%-git}"
}
|