mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 03:14:38 +08:00
35 lines
973 B
Bash
35 lines
973 B
Bash
|
# $Id: PKGBUILD 22119 2010-07-19 15:47:35Z spupykin $
|
||
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||
|
|
||
|
pkgname=perl-sgmls
|
||
|
pkgver=1.03ii
|
||
|
pkgrel=3
|
||
|
pkgdesc="A Post-Processor for SGMLS and NSGMLS"
|
||
|
arch=('any')
|
||
|
url="http://search.cpan.org/dist/SGMLSpm"
|
||
|
license=('GPL' 'PerlArtistic')
|
||
|
depends=('perl')
|
||
|
options=('!emptydirs' 'docs' 'force')
|
||
|
source=(http://www.cpan.org/authors/id/D/DM/DMEGG/SGMLSpm-$pkgver.tar.gz)
|
||
|
md5sums=('5bcb197fd42e67d51c739b1414d514a7')
|
||
|
|
||
|
build() {
|
||
|
cd $srcdir/SGMLSpm
|
||
|
|
||
|
mkdir -p $pkgdir/usr/bin $pkgdir/usr/lib/perl5/vendor_perl $pkgdir/usr/share/doc/perl-sgmls
|
||
|
|
||
|
patch Makefile <<EOF
|
||
|
84a85
|
||
|
> find \${HTMLDIR} -type l -exec rm -f {} \;
|
||
|
EOF
|
||
|
|
||
|
make install install_html \
|
||
|
BINDIR=$pkgdir/usr/bin \
|
||
|
PERL5DIR=$pkgdir/usr/lib/perl5/vendor_perl \
|
||
|
HTMLDIR=$pkgdir/usr/share/doc/perl-sgmls || return 1
|
||
|
|
||
|
find $pkgdir -name '.packlist' -delete
|
||
|
find $pkgdir -name '*.pod' -delete
|
||
|
}
|