arcolinux

the_platinum_searcher-bin/PKGBUILD

Oct 5th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # Maintainer: pancho horrillo <pancho at pancho dot name>
  2.  
  3. pkgname=the_platinum_searcher-bin
  4. pkgdesc='A code search tool similar to ack, the_silver_searcher (ag) and ripgrep (rg).'
  5. pkgver=2.2.0
  6. pkgrel=1
  7. arch=('x86_64')
  8. url='https://github.com/monochromegane/the_platinum_searcher'
  9. license=('MIT')
  10. depends=()
  11. provides=('the_platinum_searcher')
  12. conflicts=('the_platinum_searcher')
  13. source_x86_64=(
  14. "https://github.com/monochromegane/the_platinum_searcher/releases/download/v$pkgver/pt_linux_amd64.tar.gz"
  15. LICENSE
  16. )
  17. sha512sums_x86_64=(
  18. 'bb0da7b89b5c0c079588c1f3a0e755db0aeac189b676b8df1fa756bff13121e06e61f747c86cd22c92928db22db45b175155cd09b82ff87b289e83581a07c3e4'
  19. '58a1456e4267dc43f7e68071b6077c91516f576060d9a2fb645e47015adfc2dbffcae43e2ca81148bd1e0f0cae2cbe7ef2e147646579ed98bfaa44aa86c95680'
  20. )
  21.  
  22. package() {
  23. msg 'Installing pt binary...'
  24. install -Dm 755 "$srcdir/pt_linux_amd64/pt" "$pkgdir/usr/bin/pt"
  25.  
  26. msg 'Installing README...'
  27. install -Dm 644 "$srcdir/pt_linux_amd64/README.md" "$pkgdir/usr/share/doc/${pkgname/-bin}/README.md"
  28.  
  29. msg 'Installing LICENSE...'
  30. install -m 644 -D LICENSE "$pkgdir/usr/share/licenses/${pkgname/-bin}/LICENSE"
  31. }
Add Comment
Please, Sign In to add comment