1 # Contributor: Kyle Keen <keenerd@gmail.com>
5 pkgdesc="high-security scalable online backups"
7 url="https://www.cyphertite.com"
9 depends=('openssl' 'libevent' 'expat' 'sqlite3' 'lzo2' 'xz' 'libbsd')
10 makedepends=('findutils' 'unionfs-fuse')
11 source=("https://www.cyphertite.com/snapshots/source/$pkgver/$pkgname-full-$pkgver.tar.gz"
12 "http://kmkeen.com/tmp/trip-arch")
13 md5sums=('923438963b3a689b701c207b2c2573f0'
14 '11560146ff10c42cbe23fc7f9fa7476f')
15 sha256sums=('b7378e0450bdec227f079bf14c0152672b695cfb7477cf1b204ea77837ccd5e1'
16 'f62a563e9af458246aa37166659fd40fb4afd17e2946399d4799db889e882702')
19 cd "$srcdir/$pkgname-$pkgver"
22 grep -r 'usr/local' * 2> /dev/null | cut -d ':' -f 1 | egrep '(akefile|Configure)' | xargs -n 1 sed -i 's|/usr/local|/usr|g'
23 sed -i 's|CFLAGS+= -ggdb3|CFLAGS+= -lbsd -ggdb3|' clens/Makefile
24 sed -i 's|bsd/|libbsd/bsd/|g' clens/src/arc4random_buf.c
25 echo 'CFLAGS+= -I/usr/include/libbsd' >> clens/config/Makefile.linux
26 sed -i 's|CFLAGS+= -ggdb3|CFLAGS+= -lbsd -ggdb3|' cyphertite/cyphertite/Makefile
27 sed -i 's|CFLAGS+= -ggdb3|CFLAGS+= -lbsd -ggdb3|' cyphertite/Makefile
28 echo 'CFLAGS+= -I/usr/include/libbsd' >> cyphertite/config/Makefile.linux
31 msg "Cyphertite has a convoluted build process that requires writing to your /"
32 msg "Trip-arch will sandbox the build, using a chroot + unionFS overlay."
34 bash trip-arch ./ct_install.sh
35 cp -R "pkg/usr" "$pkgdir"
38 cd "$pkgdir/usr/share/man/man3"
39 mv clog.3 clog-${pkgname}.3