blob: af9337299c4d41e8687bff16cbab181fa3f79d3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $Id: PKGBUILD 30972 2010-10-24 14:22:26Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=wml
pkgver=2.0.11
pkgrel=5
pkgdesc="The Website Meta Language"
arch=('i686' 'x86_64' 'mips64el')
url="http://thewml.org/"
license=('GPL')
depends=('perl' 'libpng' 'gdbm' 'db>=4.8.24' 'ncurses')
makedepends=('lynx')
source=("http://thewml.org/distrib/${pkgname}-${pkgver}.tar.gz")
md5sums=('a26feebf4e59e9a6940f54c69dde05b5')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# missing Perl modules fix
sed -i 's/PREFIX=$(libdir)\/perl/DESTDIR=\.\.\/\.\.\/\.\.\/\.\.\/pkg\/ PREFIX=$(libdir)\/perl/' wml_common/Makefile.in
sed -i 's/$(MAKE) pure_perl_install $(MM_INSTALL_OPTS)/$(MAKE) pure_perl_install/' wml_common/Makefile.in
unset LDFLAGS
./configure --prefix=/usr
# compile fixhack
sed -i 's#/usr/lib/perl5/core_perl/auto/DynaLoader/DynaLoader.a##' wml_backend/p3_eperl/Makefile
sed -i 's/extern struct option options\[\]\;//' ${srcdir}/${pkgname}-${pkgver}/wml_backend/p3_eperl/eperl_proto.h
sed -i 's|strip $dsttmp|#strip $dsttmp|' etc/shtool
mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/lib/wml/exec ${pkgdir}/usr/man/man{1,3,7} ${pkgdir}/usr/man/cat{1,7}
# make clean || return 1
make
make prefix=${pkgdir}/usr install
[ -d ${pkgdir}/usr/man ] && mkdir -p ${pkgdir}/usr/share && mv ${pkgdir}/usr/man ${pkgdir}/usr/share
}
|