# Maintainer: Masanori Shirayama <mashir43@gmail.com>

pkgname="lzop"
pkgver=1.04
pkgrel=2
pkgdesc="A file compressor which is very similar to gzip (compression)"
arch=('i686' 'x86_64')
url="https://www.lzop.org/"
license=('GPL')
groups=('compression')
makedepends=('gcc' 'liblzo2-devel' 'autotools')
depends=('liblzo2')
options=()
source=("https://www.lzop.org/download/$pkgname-$pkgver.tar.gz")
sha256sums=('7e72b62a8a60aff5200a047eea0773a8fb205caf7acbe1774d95147f305a2f41')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  autoreconf -ivf
}

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

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make -k check
}

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