Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. # Maintainer: éclairevoyant
  2. # Contributor: ThatOneCalculator <kainoa at t1c dot dev>
  3.  
  4. _pkgname=hyprpicker
  5. pkgname="$_pkgname-git"
  6. pkgver=0.4.1.r1.4411a6d
  7. pkgrel=1
  8. pkgdesc="A wlroots-compatible Wayland color picker that does not suck"
  9. arch=(x86_64)
  10. url="https://github.com/hyprwm/$_pkgname"
  11. license=('BSD-3-Clause')
  12. depends=(cairo gcc-libs glibc libxkbcommon wayland)
  13. makedepends=(
  14. cmake
  15. gdb
  16. git
  17. hyprwayland-scanner
  18. libglvnd
  19. libjpeg-turbo
  20. meson
  21. ninja
  22. pango
  23. wayland-protocols
  24. wlroots
  25. xorgproto
  26. )
  27. optdepends=('wl-clipboard: --autocopy')
  28. source=("git+$url.git")
  29. provides=("$_pkgname=${pkgver%%.r*}")
  30. conflicts=("$_pkgname")
  31. b2sums=('SKIP')
  32.  
  33. pkgver() {
  34. git -C $_pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
  35. }
  36.  
  37. build() {
  38. cmake -B build -S $_pkgname
  39. cmake --build build
  40. }
  41.  
  42. package() {
  43. install -vDm755 build/hyprpicker -t "$pkgdir/usr/bin/"
  44.  
  45. cd $_pkgname
  46. install -vDm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
  47. install -vDm644 doc/$_pkgname.1 -t "$pkgdir/usr/share/man/man1/"
  48. install -vDm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname/"
  49. }
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement