jobcore/xz/PKGBUILD

57 lines
1.6 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=xz
2022-10-01 12:50:56 +02:00
pkgver=5.2.7
2022-08-14 19:10:38 +02:00
pkgrel=01
2022-03-20 13:19:37 +01:00
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
arch=('x86_64')
url='https://tukaani.org/xz/'
depends=('sh')
2022-08-14 19:10:38 +02:00
source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
# "https://tukaani.org/${pkgname}/xzgrep-ZDI-CAN-16587.patch"{,.sig})
2022-08-14 19:10:38 +02:00
#prepare() {
# cd "${srcdir}/${pkgname}-${pkgver}"
#
# patch -p1 -i "${srcdir}/xzgrep-ZDI-CAN-16587.patch"
#}
2022-03-20 13:19:37 +01:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CFLAGS="$CFLAGS -Wno-format-truncation"
./configure --prefix=/usr \
--disable-rpath \
--enable-werror
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -d -m755 "${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"
}
#---- license gpg-key sha256sums ----
license=('GPL' 'LGPL' 'custom')
2022-10-01 12:50:56 +02:00
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
sha256sums=(06327c2ddc81e126a6d9a78b0be5014b976a2c0832f492dcfc4755d7facf6d33 # xz-5.2.7.tar.gz
5d6bb3f6cf492e50c93cf70c86576091fbfd3bd516e9b134da8477eac73092c7) # xz-5.2.7.tar.gz.sig
2022-03-20 13:19:37 +01:00