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.

46 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. depends=('gcc' 'gcc-libs' 'giflib' 'opencv2' 'qt5-base') #giflib4 4.1.6, no 4.2.X!
  10. makedepends=('cmake')
  11. source=("http://netix.dl.sourceforge.net/project/qgifer/QGifer-${pkgver}/$_pkgname-${pkgver}-source.tar.gz"
  12. 0001_removeframelimit_addcodecs.patch
  13. giflibport.patch
  14. 0001_cmakelinkingfix.patch
  15. qt5_sourcecodepatches.patch)
  16. md5sums=('cacfcd25bb32352ea4fbb526c87efa0f'
  17. '6243b22ba569d79f0f90b16d327e26e3'
  18. '331217d8aaf8842f68c2acfba68af056'
  19. '229902522f04929b511de12692f2fb0c'
  20. '39de3e82d26aee83b367eb3871892b30')
  21. prepare() {
  22. mkdir build
  23. mv $_pkgname-$pkgver-source $pkgname-$pkgver
  24. cd $srcdir/$pkgname-$pkgver
  25. patch -Np1 -i "$srcdir/0001_removeframelimit_addcodecs.patch"
  26. patch -Np1 -i "$srcdir/giflibport.patch"
  27. patch -Np1 -i "$srcdir/0001_cmakelinkingfix.patch"
  28. patch -Np1 -i "$srcdir/qt5_sourcecodepatches.patch"
  29. }
  30. build() {
  31. cd build
  32. cmake ../$pkgname-$pkgver \
  33. -DQT_QMAKE_EXECUTABLE=qmake-qt5 \
  34. -DCMAKE_BUILD_TYPE=Release \
  35. -DCMAKE_INSTALL_PREFIX=/usr
  36. make
  37. }
  38. package() {
  39. cd build
  40. make DESTDIR="$pkgdir" install
  41. }