PKGBUILD 878 B

1234567891011121314151617181920212223242526
  1. # Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
  2. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  3. _prj=trellis
  4. _targets=ECP5
  5. _commit=fdf4bf275a7402654bc643db537173e2fbc86103
  6. pkgname=prj$_prj-db
  7. pkgver=r20210630
  8. pkgrel=1
  9. pkgdesc='Project Trellis (Lattice ECP5 bit-stream format) database'
  10. arch=('x86_64')
  11. url="https://github.com/YosysHQ/$pkgname"
  12. license=('CC0-1.0')
  13. makedepends=('git')
  14. source=("https://github.com/YosysHQ/prjtrellis-db/archive/${_commit}.tar.gz")
  15. sha512sums=('8129d883af99f8d4ddfe85b379606e716eb2cb71512e3832cd69039bb5262bf594da0971065142dcd29dfc3cc507a60a3b731776e219d078c24600746c550dd7')
  16. package() {
  17. cd $pkgname-${_commit}
  18. install -dm 755 "$pkgdir"/usr/share/$_prj/database
  19. cp -r --no-preserve=ownership devices.json $_targets "$pkgdir"/usr/share/$_prj/database/
  20. install -Dm 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
  21. }