30 lines
765 B
Plaintext
30 lines
765 B
Plaintext
pkgname="xz"
|
|
pkgver="5.6.2"
|
|
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
|
|
homepage="https://tukaani.org/xz"
|
|
license=('GPL' 'LGPL' 'custom')
|
|
sources=("xz-5.6.2.tar.xz")
|
|
urls=("https://github.com//tukaani-project/xz/releases/download/v5.6.2/xz-5.6.2.tar.xz")
|
|
md5sums=("bbf73fb28425cebb854328599f85c4cf")
|
|
|
|
src_prepare() {
|
|
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--docdir=/usr/share/doc/xz-5.6.2 &&
|
|
make
|
|
}
|
|
|
|
src_check() {
|
|
make check
|
|
}
|
|
|
|
src_install() {
|
|
make DESTDIR="${pkgdir}" install
|
|
install -d -m0755 "${pkgdir}/usr/share/licenses/xz/"
|
|
ln -sf ../../doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
|
|
}
|