summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Gathoye2017-01-06 16:27:36 +0100
committerWilliam Gathoye2017-01-06 16:27:36 +0100
commite56008e74bce673d24fe0ff1db0fce67112658d6 (patch)
tree0ad64ac6673a9315909e9742d988ba468e1611b4
parent9194e3a2e496281afdafdabc5bdcb03694f045c7 (diff)
downloadaur-e56008e74bce673d24fe0ff1db0fce67112658d6.tar.gz
Update + add HTML version like requested
-rw-r--r--PKGBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c3a3004ce45..21319f90491 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
# Contributor:
pkgname=progit2-git
-pkgver=2.0.0.r611.g024a3a0
-pkgrel=3
+pkgver=2.0.0.r689.g5026c45
+pkgrel=1
pkgdesc="A package to build the latest version of the progit2 book and read it when offline"
arch=('any')
@@ -47,7 +47,8 @@ prepare() {
# Gem dependencies can also be installed in the directory we specify, but
# the latter will be removed after we have build the book. The PKGBUILD
# will have to redownload again all these deps if the user wants to update
- # hos book.
+ # his book. Even if this is quite heavy, this is the cleaner approach we
+ # have.
bundle install --path .bundle
# Override the directory
@@ -65,9 +66,11 @@ package() {
# Install to /usr/share/doc/progit2
install -dm755 "$pkgdir/usr/share/doc/${pkgname%-git}/"
- cp "$srcdir/${pkgname%-git}/progit.epub" "$pkgdir/usr/share/doc/${pkgname%-git}/"
- cp "$srcdir/${pkgname%-git}/progit-kf8.epub" "$pkgdir/usr/share/doc/${pkgname%-git}/"
- cp "$srcdir/${pkgname%-git}/progit.mobi" "$pkgdir/usr/share/doc/${pkgname%-git}/"
- cp "$srcdir/${pkgname%-git}/progit.pdf" "$pkgdir/usr/share/doc/${pkgname%-git}/"
- cp "$srcdir/${pkgname%-git}/progit.pdfmarks" "$pkgdir/usr/share/doc/${pkgname%-git}/"
+ cp "$srcdir/${pkgname%-git}/progit.epub" "$pkgdir/usr/share/doc/${pkgname%-git}/"
+ cp "$srcdir/${pkgname%-git}/progit-kf8.epub" "$pkgdir/usr/share/doc/${pkgname%-git}/"
+ cp "$srcdir/${pkgname%-git}/progit.mobi" "$pkgdir/usr/share/doc/${pkgname%-git}/"
+ cp "$srcdir/${pkgname%-git}/progit.pdf" "$pkgdir/usr/share/doc/${pkgname%-git}/"
+ cp "$srcdir/${pkgname%-git}/progit.pdfmarks" "$pkgdir/usr/share/doc/${pkgname%-git}/"
+ cp "$srcdir/${pkgname%-git}/progit.html" "$pkgdir/usr/share/doc/${pkgname%-git}/"
+ cp -a "$srcdir/${pkgname%-git}/images" "$pkgdir/usr/share/doc/${pkgname%-git}/"
}