PKGBUILDs/xz/static-compat/PKGBUILD

49 lines
1.4 KiB
Bash

# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: François Charette <firmicus@gmx.net>
_pkgname=xz
pkgname=static-compat-$_pkgname
pkgver=5.6.1
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' 'git' 'po4a' 'doxygen')
options=(!emptydirs staticlibs)
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
source=("git+https://github.com/tukaani-project/xz#tag=v${pkgver}")
sha256sums=('e10fa4254d5ff033c78dcbfd2866e79a762b8a719503a7c146758e590de945dc')
sha512sums=('8f4ee2e5c9b46d0917d8bdf8b172a70d02a6cf2d4d78a2e99ae942e32979b72b407809ffda2885af41e2c9d801c19eab5e4fd73888fbaf042346be957df406fc')
prepare() {
cd ${_pkgname}
./autogen.sh
}
build() {
source static-compat-environment
cd ${_pkgname}
static-compat-configure --disable-shared --enable-static --disable-rpath
make
}
check() {
source static-compat-environment
cd ${_pkgname}
make check
}
package() {
source static-compat-environment
cd ${_pkgname}
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}
}