void-packages/srcpkgs/sxiv/template

22 lines
610 B
Bash

# Template file for 'sxiv'
pkgname=sxiv
version=24
revision=2
build_style=gnu-makefile
makedepends="libX11-devel imlib2-devel giflib-devel libexif-devel libXft-devel"
short_desc="Simple X Image Viewer"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/muennich/sxiv"
license="GPL-2"
distfiles="https://github.com/muennich/sxiv/archive/v${version}.tar.gz"
checksum=511dc45d12962af9c31c3068ce6bca4b832a6263946b27befea49a48cf019110
pre_build() {
cp ${FILESDIR}/config.h config.h
}
if [ "$CROSS_BUILD" ]; then
# otherwise ft2build.h is not found
hostmakedepends+=" freetype-devel"
fi