#!/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=lzip
pkgver=1.23
pkgrel=03
pkgdesc="A lossless file compressor based on the LZMA algorithm - default for Joborun Linux packaging since 2/2/23"
arch=('x86_64')
url="https://www.nongnu.org/lzip/lzip.html"
group=(base jobbot)
depends=('gcc-libs')
source=("https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
	"https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz.sig")

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS"
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install{,-man}
}

#---- license gpg-key sha256sums ----

license=('GPL3')

validpgpkeys=('1D41C14B272A2219A739FA4F8FE99503132D7742')  # Antonio Diaz Diaz <antonio@gnu.org>

## upstream provided sha256sum:
## http://lists.nongnu.org/archive/html/lzip-bug/2018-02/msg00006.html

sha256sums=(4792c047ddf15ef29d55ba8e68a1a21e0cb7692d87ecdf7204419864582f280d  # lzip-1.23.tar.gz
	1344b2c6b96c27cd361cfb1cd3a9bbb98434cceb3bc2d57c6458b373d9651c0b) # lzip-1.23.tar.gz.sig

