summaryrefslogtreecommitdiff
path: root/pcr/mhonarc/PKGBUILD
blob: 64519d1fc1dbfc88a3a00928780caacf45c6b553 (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
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Billy Congo <billycongo@gmail.com>
# Contributor: froggie <sullivanva@gmail.com>
# Contributor: Lukas Martini <hello@lutoma.org>

pkgname=mhonarc
pkgver=2.6.19
pkgrel=1
pkgdesc="MHonArc is a Perl mail-to-HTML converter."
license=("GPL")
arch=("i686" "x86_64")
depends=('perl>=5.10.0')
source=(http://www.mhonarc.org/release/MHonArc/tar/MHonArc-$pkgver.tar.bz2{,.sig})
url="http://www.mhonarc.org/"

build() {
  cd "$srcdir/MHonArc-$pkgver"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \
    PREFIX="$pkgdir/usr/"
  make
}

package() {
  cd "$srcdir/MHonArc-$pkgver"
  make install

  # move /usr/doc to /usr/share/doc for FHS-compliance. 
  mv "$pkgdir/usr/doc" "$pkgdir/usr/share/"
  # remove perllocal.pod and .packlist
  find "$pkgdir" -name perllocal.pod -delete
  find "$pkgdir" -name .packlist -delete
}

md5sums=('6e74712a6da370c8c63b5bde7573f48f'
         'SKIP')