summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/mhonarc/PKGBUILD67
1 files changed, 43 insertions, 24 deletions
diff --git a/pcr/mhonarc/PKGBUILD b/pcr/mhonarc/PKGBUILD
index 64519d1fc..1753b66f5 100644
--- a/pcr/mhonarc/PKGBUILD
+++ b/pcr/mhonarc/PKGBUILD
@@ -1,35 +1,54 @@
-# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
-# Contributor: Billy Congo <billycongo@gmail.com>
-# Contributor: froggie <sullivanva@gmail.com>
-# Contributor: Lukas Martini <hello@lutoma.org>
+# Maintainer (AUR): Chris Severance aur.severach AatT spamgourmet.com
+# Contributor (AUR): Abhishek Dasgupta <abhidg@gmail.com>
+# Contributor (AUR): Billy Congo <billycongo@gmail.com>
+# Contributor (AUR): froggie <sullivanva@gmail.com>
+# Contributor (AUR): 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/"
+# paraboal changes and rationale:
+# - removed superfluous set -u
+
+_pkgnameu='MHonArc'
+pkgname="${_pkgnameu,,}"
+pkgver='2.6.19'
+pkgrel='2'
+pkgdesc="a Perl mail-to-HTML converter"
+arch=('any')
+url='http://www.mhonarc.org/'
+license=('GPL')
+depends=('perl>=5.6.1')
+optdepends=(
+ 'perl-digest-perl-md5: creating IDs for messages without message-ids.'
+ 'perl-file-temp: more secure temp file management'
+ 'perl-mime-base64: efficient base64 decoding'
+ 'perl-posix-strftime-compiler: improved time string formatting'
+)
+_verwatch=("${url}release/${_pkgnameu}/tar/" "${_pkgnameu}-\([^-]*\)\.tar\.bz2" 'l')
+source=("${_verwatch[0]}${_pkgnameu}-${pkgver}.tar.bz2"
+ 'Debian_816638.diff::https://bugs.debian.org/cgi-bin/bugreport.cgi?filename=816638.diff;att=1;msg=17;bug=816638') # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816638#17
+
+sha256sums=('08912eae8323997b940b94817c83149d2ee3ed11d44f29b3ef4ed2a39de7f480'
+ '76b1c608a971bd090a3a0eb60ff98f40a141fb7535763dde55c714b92f183eb6')
+
+prepare() {
+ set -u
+ cd "MHonArc-${pkgver}"
+ patch -f -p1 < "${srcdir}/Debian_816638.diff" || :
+ PERL_MM_USE_DEFAULT=1 perl 'Makefile.PL' INSTALLDIRS='vendor' PREFIX="${pkgdir}/usr/"
+ set +u
+}
build() {
- cd "$srcdir/MHonArc-$pkgver"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \
- PREFIX="$pkgdir/usr/"
+ cd "MHonArc-${pkgver}"
make
}
package() {
- cd "$srcdir/MHonArc-$pkgver"
+ cd "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
+ mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+ # remove perllocal.pod and .packlist (these don't seem to exist any more)
+ find "${pkgdir}" -name 'perllocal.pod' -delete
+ find "${pkgdir}" -name '.packlist' -delete
}
-
-md5sums=('6e74712a6da370c8c63b5bde7573f48f'
- 'SKIP')