Guest User

Freefilesync 9.8

a guest
Feb 18th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1.  
  2. # Contributor: chenxing <cxcxcxcx AT gmail DOT com>
  3. # Contributor: Michael Burkhard <Michael DOT Burkhard AT web DOT de>
  4. # Maintainer: alexmo82 <25396682 AT live DOT it>
  5.  
  6. pkgname=freefilesync
  7. pkgver=9.8
  8. pkgrel=1
  9. pkgdesc="Backup software to synchronize files and folders"
  10. arch=('i686' 'x86_64')
  11. url="http://www.freefilesync.org/"
  12. license=('GPLv3')
  13. depends=(wxgtk webkit2gtk boost-libs)
  14. makedepends=(boost)
  15. source=(
  16. "FreeFileSync_${pkgver}_Source.zip::https://www.freefilesync.org/download_redirect.php?file=FreeFileSync_${pkgver}_Source.zip" #ffs
  17. FreeFileSync.desktop
  18. ffsicon.png
  19. RealTimeSync.desktop
  20. rtsicon.png
  21. )
  22.  
  23. sha256sums=(
  24. '77a59586284a518d6df6c0cc934c3efa434f247acce70452ab9fe37e7747b96d' #ffs source
  25. 'b381bb9dbda25c3c08a67f18072a2761abe34339ddf3318e1758eb7c349f1a3b' #FreeFileSync.desktop
  26. '31df3fa1f1310de14bbd379f891d4f8ed2df5b0d68913eb52c88b3be682933fb' #ffsicon.png
  27. '1502efdbf1638856a18ab9916e0431bf6a53471792cb2daa380345bac33f67c4' #RealTimeSync.desktop
  28. 'f28042587dbe99cf5d6bef2c1be4b026488e418e4ba8332b3016d246b7053a4e' #rtsicon.png
  29. )
  30.  
  31. DLAGENTS=('https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -A Mozilla -o %o %u')
  32.  
  33. prepare() {
  34. # wxgtk < 3.1.0
  35. sed -i 's/m_listBoxHistory->GetTopItem()/0/g' FreeFileSync/Source/ui/main_dlg.cpp
  36.  
  37. # gcc 6.3.1
  38. sed -i 's!static_assert!//static_assert!' zen/scope_guard.h
  39.  
  40. # warn_static(string)
  41. sed -i 's!-O3 -DN!-D"warn_static(arg)= " -O3 -DN!' FreeFileSync/Source/Makefile
  42. sed -i 's!-O3 -DN!-D"warn_static(arg)= " -O3 -DN!' FreeFileSync/Source/RealTimeSync/Makefile
  43.  
  44. # linker error
  45. sed -i 's#inline##g' FreeFileSync/Source/ui/version_check_impl.h
  46.  
  47. # install error
  48. cp ${srcdir}/Changelog.txt ${srcdir}/FreeFileSync/Build
  49. }
  50.  
  51. build() {
  52. ### speed up compile on multithread machines
  53. MAKEFLAGS="-j$(nproc)"
  54.  
  55. ### just in case of compile errors
  56. VER=`g++ -dumpversion`
  57. MAC=`g++ -dumpmachine`
  58. echo "compiler g++ $VER $MAC"
  59.  
  60. ### FFS
  61. cd ${srcdir}/FreeFileSync/Source
  62. make launchpad
  63.  
  64. ### RTS
  65. cd RealTimeSync
  66. make launchpad
  67. }
  68.  
  69. package() {
  70. cd ${srcdir}/FreeFileSync/Source
  71. make DESTDIR=${pkgdir} install
  72.  
  73. cd RealTimeSync
  74. make DESTDIR=${pkgdir} install
  75.  
  76. cd ${srcdir}
  77. install -Dm644 FreeFileSync.desktop $pkgdir/usr/share/applications/FreeFileSync.desktop
  78. install -Dm644 ffsicon.png $pkgdir/usr/share/pixmaps/ffsicon.png
  79. install -Dm644 RealTimeSync.desktop $pkgdir/usr/share/applications/RealTimeSync.desktop
  80. install -Dm644 rtsicon.png $pkgdir/usr/share/pixmaps/rtsicon.png
  81. }
Add Comment
Please, Sign In to add comment