updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / cyphertite / PKGBUILD
blobfe2aa34324420f26f9bcd5ae7f496779a7004c0e
1 # Contributor: Kyle Keen <keenerd@gmail.com>
2 pkgname=cyphertite
3 pkgver=0.6.1
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 options=(!buildflags)  # --as-needed hack
12 source=("https://www.cyphertite.com/snapshots/source/$pkgver/$pkgname-full-$pkgver.tar.gz"
13     "http://kmkeen.com/tmp/trip-arch")
14 md5sums=('92e7d7f2c6dfe77712758c4256f7c28a'
15          '11560146ff10c42cbe23fc7f9fa7476f')
16 sha256sums=('492a642f584dd4df2d4c0186c04c49ae923aa7cceedb5b5678adf918276f4670'
17             'f62a563e9af458246aa37166659fd40fb4afd17e2946399d4799db889e882702')
19 build() {
20   cd "$srcdir/$pkgname-$pkgver"
22   # make it build
23   grep -r 'usr/local' * 2> /dev/null | cut -d ':' -f 1 | egrep '(akefile|Configure)' | xargs -n 1 sed -i 's|/usr/local|/usr|g'
24   sed -i 's|CFLAGS+= -ggdb3|CFLAGS+= -lbsd -ggdb3|' clens/Makefile
25   sed -i 's|bsd/|libbsd/bsd/|g' clens/src/arc4random_buf.c
26   echo 'CFLAGS+= -I/usr/include/libbsd' >> clens/config/Makefile.linux
27   sed -i 's|CFLAGS+= -ggdb3|CFLAGS+= -lbsd -ggdb3|' cyphertite/cyphertite/Makefile
28   sed -i 's|CFLAGS+= -ggdb3|CFLAGS+= -lbsd -ggdb3|' cyphertite/Makefile
29   echo 'CFLAGS+= -I/usr/include/libbsd' >> cyphertite/config/Makefile.linux
30   echo 'LDFLAGS+= -lz' >> cyphertite/cyphertite/Makefile
31   echo 'LDFLAGS+= -lz' >> openssl-1.0.0e/Makefile
33   # contain the build
34   msg "Cyphertite has a convoluted build process that requires writing to your /"
35   msg "Trip-arch will sandbox the build, using a chroot + unionFS overlay."
36   cp ../../trip-arch ./
37   bash trip-arch ./ct_install.sh
38   cp -R "pkg/usr" "$pkgdir"
40   # fix misc
41   cd "$pkgdir/usr/share/man/man3"
42   mv clog.3 clog-${pkgname}.3