archrelease: copy trunk to testing-x86_64
[arch-packages.git] / man2html / repos / extra-any / PKGBUILD
blob43ea2b742d40e1efdce9702c1f5c65458251cf2b
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
4 # Contributor: Paolo "PalmaWay" Palmieri <palmaway@gmx.it>
6 pkgname=man2html
7 pkgver=3.0.1
8 pkgrel=9
9 pkgdesc="A Unix manpage-to-HTML converter"
10 arch=('any')
11 url="https://www.nongnu.org/man2html/"
12 license=('GPL')
13 depends=('man' 'perl')
14 # https://www.cpan.org/authors/id/E/EH/EHOOD/CHECKSUMS
15 source=(#http://www.oac.uci.edu/indiv/ehood/tar/$pkgname$pkgver.tar.gz
16         https://www.cpan.org/authors/id/E/EH/EHOOD/$pkgname$pkgver.tar.gz)
17 sha256sums=('a3dd7fdd80785c14c2f5fa54a59bf93ca5f86f026612f68770a0507a3d4e5a29')
19 # consider to move to Debians fork also used by Fedora
20 # https://packages.debian.org/source/sid/man2html
21 # http://pkgs.fedoraproject.org/cgit/rpms/man2html.git/tree/man2html.spec
23 package() {
24   cd "${srcdir}"/${pkgname}${pkgver}
25   install -d "${pkgdir}"/usr/bin "${pkgdir}"/usr/share/man/man1 
26   perl install.me -batch -binpath "${pkgdir}"/usr/bin -manpath "${pkgdir}"/usr/share/man
27   
28   sed -i "s:/usr/local:/usr:" man.cgi
29   install -m755 man.cgi "${pkgdir}"/usr/bin/