pkgname="lz4"
pkgver="1.10.0"
pkgdesc='Extremely fast compression algorithm'
homepage="https://lz4.org/"
license=('GPL-2.0-or-later')
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/lz4/lz4/releases/download/v${pkgver}/${sources[0]}")
md5sums=("dead9f5f1966d9ae56e1e32761e4e675")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  make BUILD_STATIC=no PREFIX=/usr
}

src_check() {
  make -j1 check
}

src_install() {
  make BUILD_STATIC=no PREFIX="${pkgdir}/usr" install
}
