PKGBUILD 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Maintainer: Bachir Soussi Chiadmi (scbh at g-u-i dot me)
  2. pkgname=ospkit-git
  3. pkgver=r32.7f46ee9
  4. pkgrel=1
  5. pkgdesc="Webkit based html browser for printing."
  6. arch=('i686' 'x86_64')
  7. url="http://osp.kitchen/tools/ospkit/"
  8. license=('AGPL')
  9. depends=('desktop-file-utils' 'qt5-webkit')
  10. makedepends=('git')
  11. provides=('ospkit')
  12. source=('git+http://gitlab.constantvzw.org/osp/tools.ospkit.git' 'ospkit.desktop' 'ospkit.png')
  13. md5sums=('SKIP' 'b921f154668105b891a8eac7e12ce94d' '908a48e767b3286fa6e9a1d8b571ef65')
  14. conflicts=("")
  15. pkgver() {
  16. cd "$srcdir/tools.ospkit"
  17. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  18. }
  19. build() {
  20. cd "$srcdir/tools.ospkit/src/"
  21. qmake prefix=/usr
  22. make
  23. }
  24. package() {
  25. mkdir -p "$pkgdir/usr/bin"
  26. install "$srcdir/tools.ospkit/src/OSPKit" "$pkgdir/usr/bin/ospkit"
  27. mkdir -p "$pkgdir/usr/share/applications"
  28. install -Dm644 ospkit.desktop "$pkgdir/usr/share/applications/ospkit.desktop"
  29. mkdir -p "$pkgdir/usr/share/pixmaps"
  30. install -Dm644 ospkit.png "$pkgdir/usr/share/pixmaps/ospkit.png"
  31. }