From 1370ed6f41ff1148118eab6f6a2cf7fba8e78598 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 12 Sep 2017 00:07:26 +0200 Subject: [PATCH] New package: tif22pnm-2014.01.09.1 --- srcpkgs/tif22pnm/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/tif22pnm/template diff --git a/srcpkgs/tif22pnm/template b/srcpkgs/tif22pnm/template new file mode 100644 index 00000000000..0a49a2d969d --- /dev/null +++ b/srcpkgs/tif22pnm/template @@ -0,0 +1,33 @@ +# Template file for 'tif22pnm' +pkgname=tif22pnm +version=2014.01.09.1 +revision=1 +_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 " +license="GPL-2" +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 +}