updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / cyphertite / PKGBUILD
blob19848d6ea34064af5caf9bf9d9a532fa84937062
1 # Contributor: Kyle Keen <keenerd@gmail.com>
2 pkgname=cyphertite
3 pkgver=0.5.0
4 pkgrel=1
5 pkgdesc="high-security scalable online backups"
6 arch=('i686' 'x86_64')
7 url="https://www.cyphertite.com"
8 license=('GPL')
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')
18 build() {
19   cd "$srcdir/$pkgname-$pkgver"
21   # make it build
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
30   # contain the build
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."
33   cp ../../trip-arch ./
34   bash trip-arch ./ct_install.sh
35   cp -R "pkg/usr" "$pkgdir"
37   # fix misc
38   cd "$pkgdir/usr/share/man/man3"
39   mv clog.3 clog-${pkgname}.3