diff options
author | Steven Honeyman | 2015-06-09 19:15:58 +0100 |
---|---|---|
committer | Steven Honeyman | 2015-06-09 19:15:58 +0100 |
commit | 7c00bd5c169671e1b950a4d45fab79544d3cc72d (patch) | |
tree | 86d8dada51d9a0695c68db4f93d46c082dad9471 /PKGBUILD | |
download | aur-txt2html.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6900abf001ab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Steven Honeyman <stevehoneyman at gmail com> +# Contributor: David J. Haines <djhaines@gmx.com> + +pkgname=txt2html +pkgver=2.5201 +pkgrel=2 +pkgdesc="Convert plain text files to HTML" +arch=('i686' 'x86_64') +url="http://txt2html.sourceforge.net/" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0' 'perl-getopt-argvfile') +options=(!emptydirs) +source=(http://www.cpan.org/authors/id/R/RU/RUBYKAT/txt2html-2.5201.tar.gz) +md5sums=('44029f55c30a551f343b9424a98a3691') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's/^use strict;$/&\nour $VERSION;/' scripts/txt2html + sed -i 's/use YAML/#use YAML/g' lib/HTML/TextToHTML.pm +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + /usr/bin/perl Build.PL --installdirs vendor + ./Build +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + ./Build install --destdir "$pkgdir" --install_path script=usr/bin +} |