PKGBUILDs/xz/static-compat/PKGBUILD

45 lines
1.5 KiB
Bash

# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: François Charette <firmicus@gmx.net>
_pkgname=xz
pkgname=static-compat-$_pkgname
pkgver=5.4.0
pkgrel=1
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
arch=('x86_64')
url='https://tukaani.org/xz/'
license=('GPL' 'LGPL' 'custom')
depends=('glibc-static-compat')
makedepends=('static-compat-configure')
options=(!emptydirs staticlibs)
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
source=("https://tukaani.org/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.sig})
sha256sums=('7471ef5991f690268a8f2be019acec2e0564b7b233ca40035f339fe9a07f830b'
'SKIP')
sha512sums=('29b2cd25bb5b234b329ffe9547692d2c29be393db9d8d4ce70a66dfdaebd54433e79a89d80c57e58cd4559c3c68b9845507d5fedf3eec1c528a81e3d9ddbd811'
'SKIP')
build() {
source static-compat-environment
cd "${srcdir}/${_pkgname}-${pkgver}"
static-compat-configure --disable-shared --enable-static --disable-rpath
make
}
check() {
source static-compat-environment
cd "${srcdir}/${_pkgname}-${pkgver}"
make check
}
package() {
source static-compat-environment
cd "${srcdir}/${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}/"
ln -sf /usr/static/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
rm -r "$pkgdir/$static_compat_prefix"/bin
rm -r "$pkgdir/$static_compat_prefix"/share/{man,doc,locale}
}