PKGBUILDs/community/zimg/PKGBUILD

47 lines
899 B
Bash
Raw Normal View History

2015-12-16 05:12:51 +00:00
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove --enable-x86simd from configure
pkgname=zimg
2020-03-02 19:45:14 +00:00
pkgver=2.9.3
2015-12-16 05:12:51 +00:00
pkgrel=1
pkgdesc='Scaling, colorspace conversion, and dithering library'
2020-03-02 19:45:14 +00:00
arch=(x86_64)
url=https://github.com/sekrit-twc/zimg
license=(custom:WTFPL)
makedepends=(git)
provides=(libzimg.so)
options=(!emptydirs)
source=(git+https://github.com/sekrit-twc/zimg.git#tag=527dd55fd5221bd223bf019456da215759073c6f)
sha256sums=(SKIP)
pkgver() {
cd zimg
git describe --tags | sed 's/^release-//'
}
2015-12-16 05:12:51 +00:00
2018-10-25 12:16:33 +00:00
prepare() {
2018-07-23 12:31:50 +00:00
cd zimg
2015-12-16 05:12:51 +00:00
./autogen.sh
2018-10-25 12:16:33 +00:00
}
build() {
cd zimg
2015-12-16 05:12:51 +00:00
./configure \
2020-03-02 19:45:14 +00:00
--prefix=/usr \
2015-12-16 05:12:51 +00:00
--disable-static
make
}
package(){
2018-07-23 12:31:50 +00:00
make DESTDIR="${pkgdir}" -C zimg install
install -Dm 644 zimg/COPYING -t "${pkgdir}"/usr/share/licenses/zimg/
2015-12-16 05:12:51 +00:00
}
# vim: ts=2 sw=2 et: