Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.0 KiB

  1. # Maintainer: FadeMind <fademind@gmail.com>
  2. # Contributor: Jakub Schmidtke <sjakub-at-gmail.com>
  3. # Contributor: Piotr Krzemiński <pio.krzeminski@gmail.com>
  4. pkgname=qnapi
  5. pkgver=0.2.2
  6. pkgrel=3
  7. pkgdesc="Qt5 client for downloading movie subtitles from NapiProjekt, OpenSubtitles, Napisy24"
  8. arch=('i686' 'x86_64' 'armv7h')
  9. url="https://github.com/QNapi/${pkgname}"
  10. license=('GPL')
  11. depends=('qt5-base' 'libmediainfo' 'p7zip')
  12. changelog=ChangeLog
  13. source=("${pkgname}-${pkgver}.tar.gz::https://github.com/QNapi/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
  14. languagefix.patch
  15. languagefix_2.patch
  16. defaultsublanguage.patch)
  17. sha256sums=('d189150944b2524e06bec3215caf4aa8503ee4f2597954cba5c2568e4a3b8a92'
  18. '3c285a477e3dcced2457486886401bb506001089c258c5315a835edbef4bab91'
  19. '03df5456a7fa3ea97941f4fd348fcb92e89cee1553a34cd7942fe8c9c7f9a013'
  20. 'f985cd7f1c75ac0913b762b94d5ea102fdb3d3dd9b4bc72e305783d25315ed73')
  21. prepare() {
  22. cd "${srcdir}/${pkgname}-${pkgver}"
  23. patch -Np1 -i $srcdir/languagefix.patch
  24. patch -Np1 -i $srcdir/languagefix_2.patch
  25. patch -Np1 -i $srcdir/defaultsublanguage.patch
  26. }
  27. build() {
  28. cd "${srcdir}/${pkgname}-${pkgver}"
  29. qmake-qt5 QMAKE_DEFAULT_INCDIRS="" ${pkgname}.pro
  30. make
  31. }
  32. package() {
  33. cd "${srcdir}/${pkgname}-${pkgver}"
  34. make -j2
  35. make INSTALL_ROOT="${pkgdir}/" install
  36. mkdir -p ${pkgdir}/usr/share/{kde4/services,kservices5}/ServiceMenus/
  37. mv ${pkgdir}/usr/share/doc/${pkgname}/${pkgname}-scan.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-scan.desktop
  38. mv ${pkgdir}/usr/share/doc/${pkgname}/${pkgname}-download.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-download.desktop
  39. cp ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-scan.desktop ${pkgdir}/usr/share/kservices5/ServiceMenus/${pkgname}-scan.desktop
  40. cp ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-download.desktop ${pkgdir}/usr/share/kservices5/ServiceMenus/${pkgname}-download.desktop
  41. }