1 #Maintainer: graysky <graysky AT archlinux DOT us>
2 #Contributor: kastor@fobos.org.ar
6 pkgdesc="A multi-threaded compression program which uses the rzip/lzma, lzo, and zpaq compression algorithms."
7 url="http://lrzip.kolivas.org/"
10 depends=('lzo2' 'bzip2' 'zlib')
11 [[ $CARCH == i686 ]] && depends+=('nasm')
13 source=(http://ck.kolivas.org/apps/$pkgname/$pkgname-$pkgver.tar.bz2)
16 # CFLAGS recommended by developer #tks to lrzip-git
17 CFLAGS="${CFLAGS/-O2/-O3} -fomit-frame-pointer"
18 CXXFLAGS="${CXXFLAGS/-O2/-O3} -fomit-frame-pointer"
20 cd "$srcdir/$pkgname-$pkgver"
22 if [[ $CARCH == i686 ]];then
23 ./autogen.sh --prefix=/usr --enable-asm
25 ./autogen.sh --prefix=/usr
28 # tks to @chenxiaolong
29 # sed -i -e 's/^\t\$\(LN_S\).*//g' -e 's/^install-exec-hook.*$//g' -e 's/install-exec-hook//g' Makefile
34 cd "$srcdir/$pkgname-$pkgver"
39 cd "$srcdir/$pkgname-$pkgver"
40 make DESTDIR="$pkgdir/" install
42 sha256sums=('e7970e19fe09ecd21b2b15cab89692ccc32ba31381026fd521a371422aea6810')