Guest User

Untitled

a guest
Nov 3rd, 2022
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. pkgname=blueprint-compiler-git
  2. pkgver=0.4.0.r18.gbc15ac9
  3. pkgrel=1
  4. pkgdesc="A markup language for GTK user interfaces"
  5. arch=('any')
  6. url="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler"
  7. license=('LGPL3')
  8. depends=('gtk4' 'python-gobject' 'gobject-introspection')
  9. makedepends=('git' 'meson')
  10. provides=("${pkgname%-git}")
  11. conflicts=("${pkgname%-git}")
  12. source=("${pkgname%-git}::git+https://gitlab.gnome.org/jwestman/blueprint-compiler.git")
  13. sha256sums=('SKIP')
  14.  
  15. pkgver() {
  16. cd "${pkgname%-git}"
  17. git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  18. }
  19.  
  20. build() {
  21. local meson_options=(
  22. --libdir=lib
  23. )
  24.  
  25. arch-meson ${pkgname%-git} build "${meson_options[@]}"
  26. meson compile -C build
  27. }
  28.  
  29. check() {
  30. meson test -C build --print-errorlogs || :
  31. }
  32.  
  33. package() {
  34. meson install -C build --destdir "$pkgdir"
  35. }
Advertisement
Add Comment
Please, Sign In to add comment