[arch-commits] Commit in prjtrellis-db/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Sat Mar 28 22:34:29 UTC 2020
Date: Saturday, March 28, 2020 @ 22:34:29
Author: ffy00
Revision: 605611
upgpkg: prjtrellis-db r115.717478b-1
Added:
prjtrellis-db/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-28 22:34:29 UTC (rev 605611)
@@ -0,0 +1,31 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pjr=prjtrellis
+_targets=ECP5
+_commit=717478b757a702bbc7e3e11a5fbecee2a64f7922
+pkgname=$_pjr-db
+pkgver=r115.717478b
+pkgrel=1
+pkgdesc='Project Trellis (Lattice ECP5 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/$_pjr/database
+ cp -r --no-preserve=ownership devices.json $_targets "$pkgdir"/usr/share/$_pjr/database/
+
+ install -Dm 644 COPYING "$pkgdir"/usr/share/$pkgname/LICENSE
+}
+
More information about the arch-commits
mailing list