updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lrzip / PKGBUILD
bloba7aa6b5b0269e4eccb8c8fcbd67a921a432a0e3f
1 #Maintainer: graysky <graysky AT archlinux DOT us>
2 #Contributor: kastor@fobos.org.ar
3 pkgname=lrzip
4 pkgver=0.608
5 pkgrel=1
6 pkgdesc="A multi-threaded compression program which uses the rzip/lzma, lzo, and zpaq compression algorithms."
7 url="http://lrzip.kolivas.org/"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 depends=('lzo2' 'bzip2' 'zlib')
11 [[ $CARCH == i686 ]] && depends+=('nasm')
13 source=(http://ck.kolivas.org/apps/$pkgname/$pkgname-$pkgver.tar.bz2)
15 build() {
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
24   else
25       ./autogen.sh --prefix=/usr
26   fi
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
30   make
33 check() {
34   cd "$srcdir/$pkgname-$pkgver"
35   make -k check
38 package() {
39   cd "$srcdir/$pkgname-$pkgver"
40   make DESTDIR="$pkgdir/" install
42 sha256sums=('e7970e19fe09ecd21b2b15cab89692ccc32ba31381026fd521a371422aea6810')