PKGBUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Maintainer (arch): David Runge <dvzrv@archlinux.org>
  2. # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
  3. # Contributor: Florian Pritz <bluewind@xinu.at>
  4. # Contributor: Asa Marco <marcoasa90[at]gmail[.]com>
  5. # Contributor: André Silva <emulatorman@hyperbola.info>
  6. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  7. # parabola changes and rationale:
  8. # - remove optdepends 'faac'
  9. # - pin to tightly-coupled dependency versions
  10. pkgname=openshot
  11. pkgver=2.5.1
  12. pkgrel=4
  13. pkgrel+=.parabola1
  14. pkgdesc="An award-winning free and open-source video editor"
  15. pkgdesc+=", without nonfree faac recommendation"
  16. arch=(any)
  17. url="https://www.openshot.org/"
  18. license=(GPL3)
  19. depends=(ffmpeg python-pyqt5 python-requests python-setuptools libopenshot
  20. libopenshot-audio python-pyzmq qt5-base qt5-svg qt5-webkit)
  21. source=($pkgname-$pkgver.tar.gz::https://github.com/OpenShot/openshot-qt/archive/v$pkgver.tar.gz)
  22. sha512sums=('8254a45254bbe523b6485b9598022de2c46ec30818e606ac4665790d29486693c4efe9f5bc55ee43d6342de6782cf0090e4bc880e831c08e3b1218bca555af14')
  23. build() {
  24. cd ${pkgname}-qt-${pkgver}
  25. python setup.py build
  26. }
  27. package() {
  28. cd ${pkgname}-qt-${pkgver}
  29. python setup.py install --skip-build \
  30. --optimize=1 \
  31. --prefix=/usr \
  32. --root="${pkgdir}"
  33. install -vDm 644 {AUTHORS,{CONTRIBUTING,README}.md} \
  34. -t "${pkgdir}"/usr/share/doc/${pkgname}
  35. # pin to current 'qt5-base' libs
  36. local qt5_ver=$(pacman -S --print-format='%v' qt5-base)
  37. # TODO: and/or python-pyqt5 https://labs.parabola.nu/issues/3036
  38. #local qt5_ver=$(pacman -S --print-format='%v' python-pyqt5)
  39. depends=( ${depends[@]/qt5-base/qt5-base=${qt5_ver}} )
  40. }