void-packages/srcpkgs/optipng/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

24 lines
627 B
Bash

# Template file for 'optipng'
pkgname=optipng
version=0.7.5
revision=2
hostmakedepends="pkg-config"
makedepends="zlib-devel libpng-devel"
short_desc="Advanced PNG Optimizer"
maintainer="Juan RP <xtraeme@gmail.com>"
license="zlib"
homepage="http://optipng.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=74e54b798b012dff8993fb8d90185ca83f18cfa4935f4a93b0bcfc33c849619d
do_configure() {
./configure -prefix=/usr -mandir=/usr/share/man -with-system-libpng -with-system-zlib
}
do_build() {
make LD="$CC" ${makejobs}
}
do_install() {
make LD="$CC" DESTDIR=$DESTDIR install
}