# Maintainer: Maxime Gauduin # Contributor: Gustavo Alvarez pkgname=zimg pkgver=3.0.4 pkgrel=1 pkgdesc='Scaling, colorspace conversion, and dithering library' arch=(x86_64) url=https://github.com/sekrit-twc/zimg license=(custom:WTFPL) depends=( gcc-libs glibc ) makedepends=(git) provides=(libzimg.so) options=(!emptydirs) _tag=dd4c4dff3ce6a2877bd6ba57c1be99759b9cb2da source=(git+https://github.com/sekrit-twc/zimg.git#tag=${_tag}) sha256sums=(SKIP) prepare() { cd zimg ./autogen.sh } pkgver() { cd zimg git describe --tags | sed 's/^release-//' } build() { cd zimg ./configure \ --prefix=/usr \ --enable-x86simd \ --disable-static make } package(){ make DESTDIR="${pkgdir}" -C zimg install install -Dm 644 zimg/COPYING -t "${pkgdir}"/usr/share/licenses/zimg/ } # vim: ts=2 sw=2 et: