void-packages/srcpkgs/tif22pnm/template

34 lines
928 B
Bash

# Template file for 'tif22pnm'
pkgname=tif22pnm
version=2014.01.09.1
revision=2
_githash="22217c1a3ea355a899e9c7c79903488ca13d1dfe"
wrksrc="tif22pnm-${_githash}"
hostmakedepends="pkg-config"
makedepends="libpng-devel tiff-devel"
short_desc="TIFF-to-PNM converter and png22pnm, a PNG-to-PNM converter"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/pts/tif22pnm"
distfiles="https://github.com/pts/tif22pnm/archive/${_githash}.tar.gz"
checksum=1ffd4bb69724e48ce7a6064fa0801a52043dd2b61f414cebd1803d0cd520a6a2
do_build() {
# don't bother with the crufty build system
(
set -ex
touch config.h
${CC} ${CFLAGS} -DNDEBUG -o tif22pnm \
ptspnm.c minigimp.c miniglib.c ptstiff3.c tif22pnm.c \
-ltiff ${LDFLAGS}
${CC} ${CFLAGS} -DNDEBUG -o png22pnm \
png22pnm.c $(pkg-config libpng --cflags --libs) \
-lm ${LDFLAGS}
)
}
do_install() {
vbin tif22pnm
vbin png22pnm
}