jobcore/xz/PKGBUILD
2024-05-30 07:45:15 +03:00

77 lines
2.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=xz
pkgver=5.6.2
pkgrel=01
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
url='https://xz.tukaani.org/xz-utils/'
depends=('sh')
makedepends=('git' 'po4a' 'doxygen' 'automake' 'autoconf' 'spdlog')
provides=('liblzma.so')
#options=('debug') ##### uncomment this to produce the debug pkg
# source=("https://github.com/tukaani-project/xz/releases/download/v${pkgver}/xz-${pkgver}.tar.gz"{,.sig})
# source=("git+https://github.com/tukaani-project/xz#tag=v${pkgver}")
# previous sources
# source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
# temporary use of unsigned mirror at SF since zoner.fi is down
# Sums same with arch
#source=("xz-5.2.9.tar.gz:https://downloads.sourceforge.net/project/lzmautils/xz-5.2.9.tar.gz?ts=gAAAAABjiAaACqaAp0YyfNS0hoSgTfR8z7zafIiHfu8jZuEf9Dk3IX7wbWPwuuekp1LHnfAHvVrsFD4kpAbKm9HOsRMfAzd3CA%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Flzmautils%2Ffiles%2Fxz-5.2.9.tar.gz")
## "https://tukaani.org/${pkgname}/xzgrep-ZDI-CAN-16587.patch"{,.sig})
source=("git+https://git.tukaani.org/xz.git#tag=v${pkgver}")
prepare() {
cd ${pkgname}
# cd "${srcdir}/${pkgname}-${pkgver}"
./autogen.sh
}
build() {
# cd "${srcdir}/${pkgname}-${pkgver}"
cd ${pkgname}
./configure \
--prefix=/usr \
--disable-rpath \
--enable-doxygen \
--enable-werror
make
}
## Some of the reading on this indicates the code is injected by
## blobs used to run the following tests on tarballs from github
check() {
# cd "${srcdir}/${pkgname}-${pkgver}"
cd ${pkgname}
make check
}
package() {
# cd "${srcdir}/${pkgname}-${pkgver}"
cd ${pkgname}
make DESTDIR="${pkgdir}" install
install -d -m0755 "${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"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL' 'LGPL' 'custom')
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
sha256sums=(a71fcf56faa1f7d9e9708ca8d6a97906b929307d6a98d220018852eef37853c8) # xz
sha512sums=('f369f126dd3d538ef27ecce62e8ae01a2c9056eeb22c6b21d9a1d5e456f35330bc7f2bb0df525ad4a4f95ba84c0196c7c79ad768359786d3a73f876aa043f164')
## 47191d54f8e62c8431136e98cdef2f2b934a75073d684fcf95992855a3b69a38 xz-5.6.2-01-x86_64.pkg.tar.lz