summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Severance2015-08-02 19:27:51 -0400
committerChris Severance2015-08-02 19:27:51 -0400
commit0cd8b48ffe6153d12bc883fb751979a0ddd77da3 (patch)
tree1562270cb63781747bb5115171c56881f43f4223 /PKGBUILD
parent488cd3f1fc1022fc237af6071504932da839ee0b (diff)
downloadaur-0cd8b48ffe6153d12bc883fb751979a0ddd77da3.tar.gz
Move configure to prepare()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 18 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ca40804f8e1..1a1e5306dad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,6 +2,7 @@
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+set -u
pkgname='html2text-with-utf8'
_pkgname='html2text'
pkgver='1.3.2a'
@@ -17,20 +18,28 @@ source=("http://www.mbayer.de/html2text/downloads/${_pkgname}-${pkgver}.tar.gz"
sha256sums=('000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392'
'be4e90094d2854059924cb2c59ca31a5e9e0e22d2245fa5dc0c03f604798c5d1')
-build() {
- cp -p "${srcdir}/patch-utf8-${_pkgname}-${pkgver}.diff" "${srcdir}/${_pkgname}-${pkgver}"
+prepare() {
+ set -u
cd "${srcdir}/${_pkgname}-${pkgver}"
-
- patch -p1 < 'patch-utf8-html2text-1.3.2a.diff'
-
+ patch -p1 < "${srcdir}/patch-utf8-html2text-1.3.2a.diff"
./configure
- make
+ set +u
+}
+
+build() {
+ set -u
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make -s -j $(nproc)
+ set +u
}
package() {
+ set -u
cd "${srcdir}/${_pkgname}-${pkgver}"
- install -Dm755 'html2text' "${pkgdir}/usr/bin/html2text"
- install -Dm644 'html2text.1.gz' "${pkgdir}/usr/share/man/man1/html2text.1.gz"
- install -Dm644 'html2textrc.5.gz' "${pkgdir}/usr/share/man/man5/html2textrc.5.gz"
+ install -Dpm755 'html2text' "${pkgdir}/usr/bin/html2text"
+ install -Dpm644 'html2text.1.gz' "${pkgdir}/usr/share/man/man1/html2text.1.gz"
+ install -Dpm644 'html2textrc.5.gz' "${pkgdir}/usr/share/man/man5/html2textrc.5.gz"
+ set +u
}
+set +u