upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-xz / trunk / PKGBUILD
blobcf6127fdb79dce35edd29bf382bfe0c5bd4677b0
1 # Contributor: Pierre Schmitz <pierre@archlinux.de>
2 # Contributor: François Charette <firmicus@gmx.net>
4 pkgname=lib32-xz
5 pkgver=5.4.3
6 pkgrel=1
7 pkgdesc='Library and command line tools for XZ and LZMA compressed files (32-bit)'
8 arch=('x86_64')
9 url='https://tukaani.org/xz/'
10 license=('GPL' 'LGPL' 'custom')
11 depends=('lib32-glibc' 'xz')
12 provides=('liblzma.so')
13 validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620'  # Lasse Collin <lasse.collin@tukaani.org>
14               '22D465F2B4C173803B20C6DE59FCF207FEA7F445') # Jia Tan <jiat0218@gmail.com>
15 source=("https://tukaani.org/xz/xz-${pkgver}.tar.gz"{,.sig})
16 sha256sums=('1c382e0bc2e4e0af58398a903dd62fff7e510171d2de47a1ebe06d1528e9b7e9'
17             'SKIP')
18 sha512sums=('aff0fe166af6df4491a6f5df2372cab100b081452461a0e8c6fd65b72af3f250f16c64d9fb8fd309141e9b9ae4e41649f48687cc29e63dd82f27f2eab19b4023'
19             'SKIP')
21 build() {
22   cd "${srcdir}/xz-${pkgver}"
24   export CC='gcc -m32'
25   export PKG_CONFIG='i686-pc-linux-gnu-pkg-config'
27   ./configure \
28     --prefix=/usr \
29     --libdir=/usr/lib32 \
30     --disable-rpath \
31     --enable-werror
32   make
35 check() {
36   cd "${srcdir}/xz-${pkgver}"
38   make check
41 package() {
42   cd "${srcdir}/xz-${pkgver}"
44   make DESTDIR="${pkgdir}" install
46   rm -rf "${pkgdir}"/usr/{bin,include,share}
47   install -d -m0755 "${pkgdir}"/usr/share/licenses
48   ln -s xz "${pkgdir}"/usr/share/licenses/lib32-xz