PKGBUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Maintainer: Alexis Maiquez <aur@almamu.com>
  2. pkgname=linux-wallpaperengine-git
  3. _pkgname=linux-wallpaperengine
  4. pkgver=r450.7ae8810
  5. pkgrel=1
  6. pkgdesc="use steam's wallpaperengine on linux"
  7. arch=('x86_64')
  8. url="https://github.com/Almamu/linux-wallpaperengine"
  9. license=('GPL3')
  10. depends=('lz4' 'ffmpeg' 'mpv' 'freeimage' 'glfw' 'glew' 'freeglut' 'libpulse')
  11. makedepends=('git' 'cmake' 'sdl2' 'glm')
  12. provides=("linux-wallpaperengine")
  13. source=("${pkgname}::git+https://github.com/Almamu/linux-wallpaperengine.git#branch=main")
  14. sha512sums=('SKIP')
  15. optdepends=(
  16. 'xorg-xrandr: support for X11'
  17. 'wayland-protocols: support for wayland')
  18. pkgver() {
  19. cd "$pkgname"
  20. ( set -o pipefail
  21. git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
  22. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  23. )
  24. }
  25. build() {
  26. cmake -B build -S "$pkgname" \
  27. -DCMAKE_BUILD_TYPE='Release' \
  28. -DCMAKE_INSTALL_PREFIX='/usr' \
  29. -Wno-dev
  30. cmake --build build
  31. }
  32. package() {
  33. DESTDIR="$pkgdir" cmake --install build
  34. }