void-packages/srcpkgs/xcftools/template
2016-02-25 22:57:44 +01:00

25 lines
727 B
Bash

# Template file for 'xcftools'
pkgname=xcftools
version=1.0.7
revision=1
build_style=gnu-configure
hostmakedepends="perl"
makedepends="gettext-devel libpng-devel"
short_desc="A set of tools for extracting information from XCF files"
maintainer="Michael Gehring <mg@ebfe.org>"
license="Public domain"
homepage="http://henning.makholm.net/software"
distfiles="http://henning.makholm.net/xcftools/xcftools-${version}.tar.gz"
checksum=1ebf6d8405348600bc551712d9e4f7c33cc83e416804709f68d0700afde920a6
post_extract() {
sed -i 's/png_voidp_NULL/NULL/' xcf2png.c
sed -i 's/png_error_ptr_NULL/NULL/' xcf2png.c
sed -i 's/-lpng \$\^/\$\^ -lpng16/' Makefile.in
sed -n '62,$p' README > LICENSE
}
post_install() {
vlicense LICENSE
}