1 # Maintainer: Christian Hesse <mail@eworm.de>
2 # Contributor: Pierre Schmitz <pierre@archlinux.de> ([core] package)
3 # Contributor: François Charette <firmicus@gmx.net>
8 pkgdesc='Library and command line tools for XZ and LZMA compressed files - git checkout'
10 url='http://tukaani.org/xz/'
11 license=('GPL' 'LGPL' 'custom')
14 provides=('lzma' 'lzma-utils' 'xz-utils' 'xz=5.1.1')
15 replaces=('lzma' 'lzma-utils' 'xz-utils')
16 conflicts=('lzma' 'lzma-utils' 'xz-utils' 'xz')
19 _gitroot="http://git.tukaani.org/xz.git"
22 # keep an upgrade path for older installations
27 msg "Connecting to GIT server...."
29 if [ -d ${_gitname} ] ; then
30 cd ${_gitname} && git pull origin
31 msg "The local files are updated."
33 git clone ${_gitroot} ${_gitname}
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "${srcdir}/${_gitname}-build"
40 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
41 cd "${srcdir}/${_gitname}-build"
44 ./configure --prefix=/usr \
51 cd "${srcdir}/${_gitname}-build"
56 cd "${srcdir}/${_gitname}-build"
57 make DESTDIR=${pkgdir} install
58 install -d -m755 ${pkgdir}/usr/share/licenses/xz/
59 ln -sf /usr/share/doc/xz/COPYING ${pkgdir}/usr/share/licenses/xz/
60 ln -sf /usr/share/licenses/common/GPL2/license.txt ${pkgdir}/usr/share/doc/xz/COPYING.GPLv2