void-packages/srcpkgs/zimg/template

37 lines
888 B
Bash

# Template file for 'zimg'
pkgname=zimg
version=3.0.4
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
short_desc="Image processing library"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="WTFPL"
homepage="https://github.com/sekrit-twc/zimg"
changelog="https://raw.githubusercontent.com/sekrit-twc/zimg/master/ChangeLog"
distfiles="https://github.com/sekrit-twc/zimg/archive/release-${version}.tar.gz"
checksum=219d1bc6b7fde1355d72c9b406ebd730a4aed9c21da779660f0a4c851243e32f
case "$XBPS_TARGET_MACHINE" in
armv7*) configure_args+=" --disable-simd";;
esac
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYING
}
zimg-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}