PKGBUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: Andreas Grapentin <andreas@grapentin.org>
  6. # Contributor: André Silva <emulatorman@hyperbola.info>
  7. # Contributor: Freemor <freemor@freemor.ca>
  8. # parabola changes and rationale:
  9. # - removed faac recommendation and youtube upload support
  10. # - neuter google analytics and exception tracking as it all happens over http
  11. pkgname=openshot
  12. pkgver=2.5.1
  13. pkgrel=1
  14. pkgrel+=.nonprism1
  15. pkgdesc="An award-winning free and open-source video editor"
  16. pkgdesc+=", without nonfree faac recommendation and Youtube uploader support"
  17. arch=('any')
  18. url="https://www.openshot.org/"
  19. license=('GPL3')
  20. depends=('ffmpeg' 'mlt' 'python-pyqt5' 'python-requests' 'libopenshot'
  21. 'libopenshot-audio' 'python-pyzmq' 'qt5-base' 'qt5-svg' 'qt5-webkit')
  22. makedepends=('python-setuptools')
  23. source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenShot/openshot-qt/archive/v$pkgver.tar.gz")
  24. source+=('nonprism.patch'
  25. 'neuter_tracking.patch')
  26. sha256sums=('4c25eb9a5de42e749de4c6ca2f7a313c60e1283fe52d70c121629dbb8bb2df7b'
  27. 'b7fea3b32dd1666403caab7ff70c59cbdedceee8d3180b7a8878ee239a67623d'
  28. '138260661ca9cd1b2bb62556a2e718d0f95e3bf02a92451e39cba5e958ef7ef8')
  29. prepare() {
  30. mv -v "${pkgname}-qt-${pkgver}" "${pkgname}-${pkgver}"
  31. cd "${pkgname}-${pkgver}"
  32. patch -Np1 -i $srcdir/nonprism.patch
  33. patch -Np1 -i $srcdir/neuter_tracking.patch
  34. }
  35. build() {
  36. cd "${pkgname}-${pkgver}"
  37. python setup.py build
  38. }
  39. package() {
  40. cd "${pkgname}-${pkgver}"
  41. python setup.py install --skip-build \
  42. --optimize=1 \
  43. --prefix=/usr \
  44. --root="${pkgdir}"
  45. install -vDm 644 {AUTHORS,{CONTRIBUTING,README}.md} \
  46. -t "${pkgdir}/usr/share/doc/${pkgname}"
  47. }