summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Wu2019-01-23 10:47:54 +0800
committerDarren Wu2019-01-23 10:47:54 +0800
commiteba37ce231e31e50a94740229540e4a7ac0e9839 (patch)
treed92b03ab22f161a93dce6b137cf62b64193dcf05
downloadaur-eba37ce231e31e50a94740229540e4a7ac0e9839.tar.gz
automatically generated
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD30
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c44ce3dbf53
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = vivado-boards-git
+ pkgdesc = Vivado Board Files for Digilent Boards
+ pkgver = 1
+ pkgrel = 1
+ url = https://reference.digilentinc.com/reference/software/vivado/board-files
+ arch = any
+ license = unknown
+ depends = xilinx-vivado-dummy
+ provides = vivado-boards
+ conflicts = vivado-boards
+ source = vivado-boards::git+https://github.com/Digilent/vivado-boards.git
+ md5sums = SKIP
+
+pkgname = vivado-boards-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cba279428f2
--- /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}"
+}