extra/netpbm to 10.61.02-3

This commit is contained in:
Kevin Mihelich 2013-10-26 22:04:48 +00:00
parent 6b7e1916f6
commit 3a284aabfa

View file

@ -6,7 +6,7 @@
pkgname=netpbm pkgname=netpbm
pkgver=10.61.02 pkgver=10.61.02
pkgrel=2 pkgrel=3
pkgdesc="A toolkit for manipulation of graphic images" pkgdesc="A toolkit for manipulation of graphic images"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
license=('custom' 'BSD' 'GPL' 'LGPL') license=('custom' 'BSD' 'GPL' 'LGPL')
@ -37,7 +37,7 @@ mksource() {
} }
prepare() { prepare() {
cd "${srcdir}/advanced" cd advanced
patch -p1 < ../netpbm-CAN-2005-2471.patch patch -p1 < ../netpbm-CAN-2005-2471.patch
patch -p1 < ../netpbm-security-code.patch patch -p1 < ../netpbm-security-code.patch
@ -60,26 +60,23 @@ prepare() {
} }
build() { build() {
cd "${srcdir}/advanced" cd advanced
make make
# Generating useful man pages with html doc # Generating useful man pages with html doc
cd "${srcdir}/doc"
make MAKEMAN="${srcdir}/advanced/buildtools/makeman" USERGUIDE=. \ make MAKEMAN="${srcdir}/advanced/buildtools/makeman" USERGUIDE=. \
-f "${srcdir}/advanced/buildtools/manpage.mk" manpages -C ../doc -f "${srcdir}/advanced/buildtools/manpage.mk" manpages
} }
package() { package() {
cd "${srcdir}/advanced" cd advanced
make pkgdir="${pkgdir}/usr" PKGMANDIR=share/man install-run install-dev make pkgdir="${pkgdir}/usr" PKGMANDIR=share/man install-run install-dev
# Removing dummy man pages # Removing dummy man pages
rm "${pkgdir}"/usr/share/man/man{1,3,5}/* rm "${pkgdir}"/usr/share/man/man{1,3,5}/*
cd "${srcdir}/doc"
make MAKEMAN="${srcdir}/advanced/buildtools/makeman" MANDIR="${pkgdir}/usr/share/man" \ make MAKEMAN="${srcdir}/advanced/buildtools/makeman" MANDIR="${pkgdir}/usr/share/man" \
-f "${srcdir}/advanced/buildtools/manpage.mk" installman -C ../doc -f "${srcdir}/advanced/buildtools/manpage.mk" installman
# Replace obsolete utility # Replace obsolete utility
echo -e '#!/bin/sh\npamditherbw $@ | pamtopnm\n' > "${pkgdir}/usr/bin/pgmtopbm" echo -e '#!/bin/sh\npamditherbw $@ | pamtopnm\n' > "${pkgdir}/usr/bin/pgmtopbm"