void-packages/srcpkgs/fbv/template
maxice8 673a3d7747 fbv: fix build_style
- Switch to configure
- Respect configure_args
- Remove redundant --prefix=/usr
- Remove wrong --bindir=/usr/sbin
2018-09-25 21:53:47 -03:00

26 lines
698 B
Bash

# Template file for 'fbv'
pkgname=fbv
version=1.0b
revision=1
build_style=configure
makedepends="libpng-devel libjpeg-turbo-devel giflib-devel"
short_desc="Framebuffer image viewer"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2"
homepage="http://www.eclis.ch/fbv/"
distfiles="http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz"
checksum=9b55b9dafd5eb01562060d860e267e309a1876e8ba5ce4d3303484b94129ab3c
do_configure() {
sed -i '/^CFLAGS/d' Makefile
if [ "$CROSS_BUILD" ]; then
sed -i "s/^CC.*/CC=${XBPS_CROSS_TRIPLET}-gcc/" Makefile
sed -i "s/^cc/${XBPS_CROSS_TRIPLET}-gcc/" configure
fi
./configure ${configure_args} --libs="-lgif"
}
do_install() {
vbin fbv
vman fbv.1
}