summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..cba279428f2a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+
+# Maintainer: Darren Wu <$(base64 --decode <<<'ZGFycmVuMTk5NzA4MTBAZ21haWwuY29tCg==')>
+pkgname="vivado-boards-git"
+pkgver=1
+pkgrel=1
+pkgdesc="Vivado Board Files for Digilent Boards"
+arch=('any')
+url="https://reference.digilentinc.com/reference/software/vivado/board-files"
+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}"
+}