PKGBUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Maintainer: Bachir Soussi Chiadmi (bach at figureslibres dot io)
  2. pkgname=cascade-git
  3. pkgver=0.1.alpha.r4.64587ef
  4. pkgrel=1
  5. pkgdesc="PyQt5 based appliaction for writing and layout printed documents."
  6. arch=('any')
  7. url="https://figureslibres.io/gogs/bachir/Cascade"
  8. license=('AGPL')
  9. depends=('python' 'python-pyqt5' 'python-markdown' 'python-pygit2' 'python-beautifulsoup4' 'pandoc' 'python-pypandoc' 'python-pygments' 'qt5-base' 'python-setuptools' 'desktop-file-utils')
  10. # needs custom build of 'qt5-webkit-ng'
  11. makedepends=('coreutils' 'git' 'python' 'python-setuptools')
  12. # provides=('cascade')
  13. source=('git+https://figureslibres.io/gogs/bachir/Cascade.git' 'cascade.desktop' 'cascade.png')
  14. md5sums=('SKIP' 'd1a8974b81ce913c816b6ff1bd329299' 'd2de8e22b3f16a03c393dc1b8878fb48')
  15. # conflicts=("")
  16. pkgver() {
  17. cd "$srcdir/Cascade"
  18. # without tags
  19. # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  20. # with tags
  21. git describe --long --tags| sed 's/^v//g;s/\([^-]*-\)g/r\1/;s/-/./g'
  22. }
  23. # todo : do i need to build ? i think no
  24. # build() {
  25. # # cd "$srcdir/tools.ospkit/src/"
  26. # # qmake
  27. # # make
  28. # }
  29. package() {
  30. mkdir -p "$pkgdir/usr/share/applications"
  31. install -Dm644 cascade.desktop "$pkgdir/usr/share/applications/cascade.desktop"
  32. mkdir -p "$pkgdir/usr/share/pixmaps"
  33. install -Dm644 cascade.png "$pkgdir/usr/share/pixmaps/cascade.png"
  34. # PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps sass pyphen
  35. # python -O -m compileall "${pkgdir}/path/to/module"
  36. cd "$srcdir/Cascade"
  37. python setup.py install --root="$pkgdir/" --prefix=/usr/local/ --optimize=1
  38. }