yochananmarqos

vbox-runner-git

May 6th, 2021 (edited)
238
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=vbox-runner-git
  2. pkgver=r14.e230627
  3. pkgrel=1
  4. epoch=1
  5. pkgdesc="Allows you to start your VirtualBox virtual machines from Krunner"
  6. arch=('x86_64')
  7. url="https://github.com/alvanieto/vbox-runner"
  8. license=('GPL3')
  9. depends=('krunner')
  10. makedepends=('git' 'cmake' 'extra-cmake-modules')
  11. provides=("${pkgname%-git}")
  12. conflicts=("${pkgname%-git}" 'kdeplasma-runners-vbox')
  13. source=('git+https://github.com/alvanieto/vbox-runner.git')
  14. sha256sums=('SKIP')
  15.  
  16. pkgver() {
  17.   cd "$srcdir/${pkgname%-git}"
  18.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  19. }
  20.  
  21. build() {
  22.   cmake -B build -S "${pkgname%-git}" \
  23.     -DCMAKE_BUILD_TYPE='None' \
  24.     -DCMAKE_INSTALL_PREFIX='/usr' \
  25.     -Wno-dev
  26.   make -C build
  27. }
  28.  
  29. package() {
  30.   make -C build DESTDIR="$pkgdir" install
  31. }
RAW Paste Data