1 # $Id: PKGBUILD 50698 2011-06-29 15:35:12Z stephane $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
7 pkgdesc="The Website Meta Language"
9 url="http://thewml.org/"
11 depends=('perl' 'libpng' 'gdbm' 'db' 'ncurses')
13 source=("http://thewml.org/distrib/${pkgname}-${pkgver}.tar.gz")
14 md5sums=('a26feebf4e59e9a6940f54c69dde05b5')
16 cd ${pkgname}-${pkgver}
18 # missing Perl modules fix
19 sed -i 's/PREFIX=$(libdir)\/perl/DESTDIR=\.\.\/\.\.\/\.\.\/\.\.\/pkg\/ PREFIX=$(libdir)\/perl/' wml_common/Makefile.in
20 sed -i 's/$(MAKE) pure_perl_install $(MM_INSTALL_OPTS)/$(MAKE) pure_perl_install/' wml_common/Makefile.in
27 sed -i 's#/usr/lib/perl5/core_perl/auto/DynaLoader/DynaLoader.a##' wml_backend/p3_eperl/Makefile
28 sed -i 's/extern struct option options\[\]\;//' ${srcdir}/${pkgname}-${pkgver}/wml_backend/p3_eperl/eperl_proto.h
29 sed -i 's|strip $dsttmp|#strip $dsttmp|' etc/shtool
30 mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/lib/wml/exec ${pkgdir}/usr/man/man{1,3,7} ${pkgdir}/usr/man/cat{1,7}
37 cd ${pkgname}-${pkgver}
39 make prefix=${pkgdir}/usr install
41 [ -d ${pkgdir}/usr/man ] && mkdir -p ${pkgdir}/usr/share && mv ${pkgdir}/usr/man ${pkgdir}/usr/share