summaryrefslogtreecommitdiffstats
path: root/abs/core/xz/PKGBUILD
blob: 14255820ac80d93a85921c74bf9c19693b0afa92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $Id: PKGBUILD 96828 2010-10-25 05:57:12Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
# Contributor: François Charette <firmicus@gmx.net>

pkgname=xz
pkgver=5.0.0
pkgrel=2
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
arch=('i686' 'x86_64')
url='http://tukaani.org/xz/'
license=('GPL' 'LGPL' 'custom')
depends=('sh')
provides=('lzma' 'lzma-utils' 'xz-utils')
replaces=('lzma' 'lzma-utils' 'xz-utils')
conflicts=('lzma' 'lzma-utils' 'xz-utils')
options=('!libtool')
source=("http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('f3c0706d100ad2b6d63327584d026c50')

# keep an upgrade path for older installations
PKGEXT='.pkg.tar.gz'

build() {
        cd ${srcdir}/${pkgname}-${pkgver}

        ./configure --prefix=/usr \
                --disable-rpath \
                --enable-werror
        sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
        sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
        make
}

package() {
        cd ${srcdir}/${pkgname}-${pkgver}
        make DESTDIR=${pkgdir} install
        install -d -m755 ${pkgdir}/usr/share/licenses/xz/
        ln -sf /usr/share/doc/xz/COPYING ${pkgdir}/usr/share/licenses/xz/
        ln -sf /usr/share/licenses/common/GPL2/license.txt ${pkgdir}/usr/share/doc/xz/COPYING.GPLv2
}