Advertisement
Guest User

Untitled

a guest
May 27th, 2017
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. # Contributor: chenxing <cxcxcxcx AT gmail DOT com>
  2. # Contributor: Michael Burkhard <Michael DOT Burkhard AT web DOT de>
  3. # Maintainer: alexmo82 <25396682 AT live DOT it>
  4.  
  5. pkgname=freefilesync
  6. pkgver=9.1
  7. pkgrel=0
  8. pkgdesc="Backup software to synchronize files and folders"
  9. arch=('i686' 'x86_64')
  10. url="http://www.freefilesync.org/"
  11. license=('GPLv3')
  12. depends=(wxgtk webkitgtk2 boost-libs)
  13. makedepends=(boost)
  14. source=(
  15. "FreeFileSync_${pkgver}_Source.zip::https://www.freefilesync.org/download_redirect.php?file=FreeFileSync_${pkgver}_Source.zip" #ffs
  16. FreeFileSync.desktop
  17. ffsicon.png
  18. RealTimeSync.desktop
  19. rtsicon.png
  20. )
  21. md5sums=(
  22. '362eb9c7bfb8638119a8ba7a75c99fa4' #ffs source
  23. 'eab0ccfc6a88e229a0f07507b93cfcff' #FreeFileSync.desktop
  24. '1f452dff6f970d95839411008d86250b' #ffsicon.png
  25. 'ab266177f69d16ad9f4099ae4edd77a2' #RealTimeSync.desktop
  26. 'ee5587fa0a8d906ad416564e4daf5a06' #rtsicon.png
  27. )
  28.  
  29. prepare() {
  30. # wxgtk < 3.1.0
  31. sed -i 's/m_listBoxHistory->GetTopItem()/0/g' FreeFileSync/Source/ui/main_dlg.cpp
  32. # gcc 6.3.1
  33. sed -i 's!static_assert!//static_assert!' zen/scope_guard.h
  34. # 8.9 warn_static(string) -DZEN_LINUX
  35. sed -i 's!-O3 -DN!-D"warn_static(arg)= " -DZEN_LINUX -O3 -DN!' FreeFileSync/Source/Makefile
  36. sed -i 's!-O3 -DN!-D"warn_static(arg)= " -DZEN_LINUX -O3 -DN!' FreeFileSync/Source/RealTimeSync/Makefile
  37. # 8.9 linker error
  38. sed -i 's#inline##g' FreeFileSync/Source/ui/version_check_impl.h
  39. # 8.9 install error
  40. cp ${srcdir}/Changelog.txt ${srcdir}/FreeFileSync/Build
  41. }
  42.  
  43. build() {
  44. # just in case of compile errors
  45. VER=`g++ -dumpversion`
  46. MAC=`g++ -dumpmachine`
  47. echo "compiler g++ $VER $MAC"
  48. # FFS
  49. cd ${srcdir}/FreeFileSync/Source
  50. make launchpad
  51. # RTS
  52. cd RealTimeSync
  53. make launchpad
  54. }
  55.  
  56. package() {
  57. cd ${srcdir}/FreeFileSync/Source
  58. make DESTDIR=${pkgdir} install
  59.  
  60. cd RealTimeSync
  61. make DESTDIR=${pkgdir} install
  62.  
  63. cd ${srcdir}
  64. install -Dm644 FreeFileSync.desktop $pkgdir/usr/share/applications/FreeFileSync.desktop
  65. install -Dm644 ffsicon.png $pkgdir/usr/share/pixmaps/ffsicon.png
  66. install -Dm644 RealTimeSync.desktop $pkgdir/usr/share/applications/RealTimeSync.desktop
  67. install -Dm644 rtsicon.png $pkgdir/usr/share/pixmaps/rtsicon.png
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement