updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / lrzip-git / PKGBUILD
blobccfad088192ba63d08db39cc8128ecaff5954369
1 # Maintainer: Raghavendra Prabhu 'tlonim' < raghu . prabhu13 AT gmail dot com >
3 pkgname=lrzip-git
4 pkgver=20110310
5 pkgrel=1
6 pkgdesc="Lzma RZIP by Con Kolivas"
7 arch=('i686' 'x86_64')
8 url="http://github.com/ckolivas/lrzip"
9 license=('GPL')
10 provides=('lrzip')
11 conflicts=('lrzip')
12 makedepends=('git')
14 depends=('lzo2' 'bzip2' 'zlib')
15 [[ $CARCH == i686 ]] && depends+=('nasm')
17 _gitroot="git://github.com/ckolivas/lrzip"
18 _gitname="lrzip"
20 build() {
21   cd "$srcdir"
23   if [ -d $_gitname ] ; then
24     (cd $_gitname && git pull origin) || warning "Git pull failed!"
25   else
26     git clone $_gitroot $_gitname
27   fi
29   rm -rf $_gitname-build
30   git clone "$srcdir/$_gitname" $_gitname-build
31   cd $_gitname-build
33   # CFLAGS recommended by developer 
34   CFLAGS="${CFLAGS/-O2/-O3} -fomit-frame-pointer"
35   CXXFLAGS="${CXXFLAGS/-O2/-O3} -fomit-frame-pointer"
37   if [[ $CARCH == i686 ]];then
38       ./autogen.sh --prefix=/usr --enable-asm
39   else
40       ./autogen.sh --prefix=/usr
41   fi
43   make
46 package() {
47   cd "$srcdir/$_gitname-build"
48   make DESTDIR="$pkgdir/" install
49