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.

53 lines
2.3 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. languagefix_3.patch
  17. defaultsublanguage.patch
  18. en.png)
  19. sha256sums=('d189150944b2524e06bec3215caf4aa8503ee4f2597954cba5c2568e4a3b8a92'
  20. '72329d56129ee7a3fb7a34eac5b17365ac23ec8f2bc32939befa6ecac36e98cd'
  21. 'a9f6f0c80219e29a79d731426e3e85062673b8a3773500e415bf6cea828ea79e'
  22. 'd4f3210a8f242a1d4e70ea9270f4b46d2855b0d30445083800d3dd266078a14f'
  23. 'f985cd7f1c75ac0913b762b94d5ea102fdb3d3dd9b4bc72e305783d25315ed73'
  24. '8e48a8d3e16c9e74af247fa52fc12094a31cad8d648a681831c17b479b9c898f')
  25. prepare() {
  26. cd "${srcdir}/${pkgname}-${pkgver}"
  27. patch -Np1 -i $srcdir/languagefix.patch
  28. patch -Np1 -i $srcdir/languagefix_2.patch
  29. patch -Np1 -i $srcdir/languagefix_3.patch
  30. patch -Np1 -i $srcdir/defaultsublanguage.patch
  31. rm ./res/langs/en.png
  32. cp $srcdir/en.png ./res/langs/
  33. }
  34. build() {
  35. cd "${srcdir}/${pkgname}-${pkgver}"
  36. qmake-qt5 QMAKE_DEFAULT_INCDIRS="" ${pkgname}.pro
  37. make
  38. }
  39. package() {
  40. cd "${srcdir}/${pkgname}-${pkgver}"
  41. make -j2
  42. make INSTALL_ROOT="${pkgdir}/" install
  43. mkdir -p ${pkgdir}/usr/share/{kde4/services,kservices5}/ServiceMenus/
  44. mv ${pkgdir}/usr/share/doc/${pkgname}/${pkgname}-scan.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-scan.desktop
  45. mv ${pkgdir}/usr/share/doc/${pkgname}/${pkgname}-download.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-download.desktop
  46. cp ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-scan.desktop ${pkgdir}/usr/share/kservices5/ServiceMenus/${pkgname}-scan.desktop
  47. cp ${pkgdir}/usr/share/kde4/services/ServiceMenus/${pkgname}-download.desktop ${pkgdir}/usr/share/kservices5/ServiceMenus/${pkgname}-download.desktop
  48. }