PKGBUILDs/extra/zimg/PKGBUILD

51 lines
996 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
2020-08-08 19:46:26 +00:00
# - configure with --disable-simd
2015-12-16 05:12:51 +00:00
pkgname=zimg
2021-09-06 15:18:56 +00:00
pkgver=3.0.3
2021-07-19 13:50:24 +00:00
pkgrel=1
2015-12-16 05:12:51 +00:00
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)
2021-03-16 12:41:20 +00:00
depends=(
gcc-libs
glibc
)
2020-03-02 19:45:14 +00:00
makedepends=(git)
provides=(libzimg.so)
options=(!emptydirs)
2021-09-06 15:18:56 +00:00
_tag=1658ce429cf944e88868a88d8aef4683425d4e78
2020-08-08 17:56:35 +00:00
source=(git+https://github.com/sekrit-twc/zimg.git#tag=${_tag})
2020-03-02 19:45:14 +00:00
sha256sums=(SKIP)
2021-07-19 13:50:24 +00:00
prepare() {
2020-03-02 19:45:14 +00:00
cd zimg
2021-07-19 13:50:24 +00:00
./autogen.sh
2020-03-02 19:45:14 +00:00
}
2015-12-16 05:12:51 +00:00
2021-07-19 13:50:24 +00:00
pkgver() {
2018-07-23 12:31:50 +00:00
cd zimg
2021-07-19 13:50:24 +00:00
git describe --tags | sed 's/^release-//'
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 \
2020-08-08 19:46:26 +00:00
--disable-static \
--disable-simd
2015-12-16 05:12:51 +00:00
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: