SHOW:
|
|
- or go back to the newest paste.
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.2 |
6 | + | pkgver=9.3 |
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 webkit2gtk 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 | - | '37fddd1a3b89436ba189035d4a6c1d62' #ffs source |
22 | + | 'be348ebeea5d7644ff01facfabbc18d8' #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 | ||
33 | # gcc 6.3.1 | |
34 | sed -i 's!static_assert!//static_assert!' zen/scope_guard.h | |
35 | ||
36 | # warn_static(string) | |
37 | sed -i 's!-O3 -DN!-D"warn_static(arg)= " -O3 -DN!' FreeFileSync/Source/Makefile | |
38 | sed -i 's!-O3 -DN!-D"warn_static(arg)= " -O3 -DN!' FreeFileSync/Source/RealTimeSync/Makefile | |
39 | ||
40 | # linker error | |
41 | sed -i 's#inline##g' FreeFileSync/Source/ui/version_check_impl.h | |
42 | ||
43 | # install error | |
44 | cp ${srcdir}/Changelog.txt ${srcdir}/FreeFileSync/Build | |
45 | } | |
46 | ||
47 | build() { | |
48 | ### just in case of compile errors | |
49 | VER=`g++ -dumpversion` | |
50 | MAC=`g++ -dumpmachine` | |
51 | echo "compiler g++ $VER $MAC" | |
52 | ||
53 | ### FFS | |
54 | cd ${srcdir}/FreeFileSync/Source | |
55 | make launchpad | |
56 | ||
57 | ### RTS | |
58 | cd RealTimeSync | |
59 | make launchpad | |
60 | } | |
61 | ||
62 | package() { | |
63 | cd ${srcdir}/FreeFileSync/Source | |
64 | make DESTDIR=${pkgdir} install | |
65 | ||
66 | cd RealTimeSync | |
67 | make DESTDIR=${pkgdir} install | |
68 | ||
69 | cd ${srcdir} | |
70 | install -Dm644 FreeFileSync.desktop $pkgdir/usr/share/applications/FreeFileSync.desktop | |
71 | install -Dm644 ffsicon.png $pkgdir/usr/share/pixmaps/ffsicon.png | |
72 | install -Dm644 RealTimeSync.desktop $pkgdir/usr/share/applications/RealTimeSync.desktop | |
73 | install -Dm644 rtsicon.png $pkgdir/usr/share/pixmaps/rtsicon.png | |
74 | } |