# Maintainer: Leonardo Arena pkgname=cabextract pkgver=1.9 pkgrel=0 pkgdesc="Tool for extracting Microsoft cabinet files" url="https://www.cabextract.org.uk/" arch="all" license="GPL-2.0-or-later" subpackages="$pkgname-doc" makedepends="libmspack-dev" source="https://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 1.8: # - CVE-2018-18584 build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-external-libmspack make } check() { cd "$builddir" ./cabextract --version > /dev/null } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="d144c1df9ed8e8c339bcadb3d1be2eb2576bb066e3f75a3480df0d5e81407a633554e4674b3bb43716c0cf33a0f2327e6f798cd6d7825bceefa0ad839fcc3f64 cabextract-1.9.tar.gz"