void-packages/srcpkgs/fbv/template
2015-12-02 01:17:53 +01:00

26 lines
717 B
Bash

# Template file for 'fbv'
pkgname=fbv
version=1.0b
revision=1
build_style=gnu-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 --prefix=/usr --bindir=/usr/sbin --libs="-lgif"
}
do_install() {
vbin fbv
vman fbv.1
}