[arch-commits] Commit in prjxray-db/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Mar 28 23:04:56 UTC 2020


    Date: Saturday, March 28, 2020 @ 23:04:55
  Author: ffy00
Revision: 605645

upgpkg: prjxray-db r225.1a4ee7c-1

Added:
  prjxray-db/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-28 23:04:55 UTC (rev 605645)
@@ -0,0 +1,31 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_prj=xray
+_targets='artix7 kintex7 zynq7'
+_commit=1a4ee7cb0d93eda01db7e2b2b6950407d58ed2fd
+pkgname=prj$_prj-db
+pkgver=r225.1a4ee7c
+pkgrel=1
+pkgdesc='Project X-Ray (Xilinx 7-series bit-stream format) database'
+arch=('x86_64')
+url="https://github.com/SymbiFlow/$pkgname"
+license=('custom:CC0')
+makedepends=('git')
+source=("git+$url.git#commit=$_commit")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+
+  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+  cd $pkgname
+
+  install -dm 755 "$pkgdir"/usr/share/$_prj/database
+  cp -r --no-preserve=ownership $_targets "$pkgdir"/usr/share/$_prj/database/
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+



More information about the arch-commits mailing list