56 lines
1.6 KiB
Bash
56 lines
1.6 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.2.7
|
|
pkgrel=01
|
|
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
|
|
arch=('x86_64')
|
|
url='https://tukaani.org/xz/'
|
|
depends=('sh')
|
|
source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
|
|
# "https://tukaani.org/${pkgname}/xzgrep-ZDI-CAN-16587.patch"{,.sig})
|
|
|
|
#prepare() {
|
|
# cd "${srcdir}/${pkgname}-${pkgver}"
|
|
#
|
|
# patch -p1 -i "${srcdir}/xzgrep-ZDI-CAN-16587.patch"
|
|
#}
|
|
|
|
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')
|
|
|
|
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
|
|
|
|
sha256sums=(06327c2ddc81e126a6d9a78b0be5014b976a2c0832f492dcfc4755d7facf6d33 # xz-5.2.7.tar.gz
|
|
5d6bb3f6cf492e50c93cf70c86576091fbfd3bd516e9b134da8477eac73092c7) # xz-5.2.7.tar.gz.sig
|
|
|
|
|