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.

51 lines
1.3 KiB

  1. pkgname=qgifer-qt5
  2. _pkgname=qgifer
  3. pkgver=0.2.1
  4. pkgrel=1
  5. pkgdesc="A video-based animated GIF creator"
  6. arch=('i686' 'x86_64')
  7. url='https://sourceforge.net/projects/qgifer'
  8. license=('GPL')
  9. #giflib4 4.1.6, no 4.2.X!
  10. depends=('gcc' 'gcc-libs' 'giflib' 'opencv2' 'qt5-base')
  11. makedepends=('cmake')
  12. source=(
  13. "http://netix.dl.sourceforge.net/project/qgifer/QGifer-${pkgver}/$_pkgname-${pkgver}-source.tar.gz"
  14. "0001_removeframelimit_addcodecs.patch"
  15. "giflibport.patch"
  16. "0001_cmakelinkingfix.patch"
  17. "qt5_sourcecodepatches.patch"
  18. )
  19. md5sums=('cacfcd25bb32352ea4fbb526c87efa0f'
  20. '6243b22ba569d79f0f90b16d327e26e3'
  21. '331217d8aaf8842f68c2acfba68af056'
  22. '229902522f04929b511de12692f2fb0c'
  23. '39de3e82d26aee83b367eb3871892b30')
  24. prepare() {
  25. mkdir build
  26. mv $_pkgname-${pkgver}-source ${pkgname}-${pkgver}
  27. cd ${srcdir}/${pkgname}-${pkgver}
  28. patch -Np1 -i "${srcdir}/0001_removeframelimit_addcodecs.patch"
  29. patch -Np1 -i "${srcdir}/giflibport.patch"
  30. patch -Np1 -i "${srcdir}/0001_cmakelinkingfix.patch"
  31. patch -Np1 -i "${srcdir}/qt5_sourcecodepatches.patch"
  32. }
  33. build() {
  34. cd build
  35. cmake ../${pkgname}-${pkgver} \
  36. -DQT_QMAKE_EXECUTABLE=qmake-qt5 \
  37. -DCMAKE_BUILD_TYPE=Release \
  38. -DCMAKE_INSTALL_PREFIX=/usr
  39. make
  40. }
  41. package() {
  42. cd build
  43. make DESTDIR="${pkgdir}" install
  44. }