Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
launcher for [manjaro-documentation]
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Landauer committed Aug 29, 2016
1 parent 0c31915 commit 568b12a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
27 changes: 17 additions & 10 deletions manjaro-documentation/PKGBUILD
Expand Up @@ -2,28 +2,35 @@

pkgbase=manjaro-documentation
pkgname=('manjaro-documentation')
pkgver=20160801
_gitcommit=4474686491984025f9ebdebe51b816f443f2efba
pkgrel=1
pkgver=20160829
_gitcommit=e0d089da201e2dcd6928ca1276d336b61c9bcf2c
pkgrel=3
arch=('any')
url="https://github.com/manjaro/manjaro-user-guide"
makedepends=(lyx texlive-core texlive-latexextra texlive-pictures ttf-comfortaa ghostscript)
source=("manjaro-documentation-$pkgver-$pkgrel.tar.gz::$url/archive/$_gitcommit.tar.gz")
sha256sums=('9a77e837ccc3a00eea44131479c4eaebee3d8c14631c42cb383e63821ad474b9')
makedepends=('ghostscript' 'lyx' 'python2' 'texlive-core' 'texlive-latexextra' 'texlive-pictures' 'ttf-comfortaa')
source=("manjaro-documentation-$_gitcommit.tar.gz::$url/archive/$_gitcommit.tar.gz"
'manjaro-documentation'
'manjaro-documentation.desktop')
sha256sums=('2155dafc6dc5bbaf3f8c9bd194d1f4427936fb6d14228c2d525017e124b6a635'
'b122d1f817d60b5a18b2bb404d54c2267307b6bb0c215fc897c58cc81226a80e'
'51b209d9da5bb7d7a6b88abe097702b603c9bcfea340753187221a12955a92dd')

prepare() {
cd ${srcdir}/manjaro-user-guide*
cd ${srcdir}/manjaro-user-guide-$_gitcommit
lyx --export pdflatex manjaro-user-guide.lyx
pdflatex manjaro-user-guide
texindy --language english manjaro-user-guide.idx
pdflatex manjaro-user-guide
pdflatex manjaro-user-guide
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -sOutputFile=manjaro-user-guide-printer.pdf manjaro-user-guide.pdf
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer \
-sOutputFile=manjaro-user-guide-printer.pdf manjaro-user-guide.pdf
}

package() {
pkgdesc="Manjaro Beginner User Guide"
license=('CC-BY-SA 4.0')
cd ${srcdir}/manjaro-user-guide*
install -Dm644 manjaro-user-guide-printer.pdf "${pkgdir}/usr/share/doc/livecd/Beginner_User_Guide.pdf"
install -Dm644 "$srcdir/manjaro-user-guide-$_gitcommit/manjaro-user-guide-printer.pdf" \
"$pkgdir/usr/share/doc/livecd/Beginner_User_Guide.pdf"
install -Dm755 manjaro-documentation "$pkgdir/usr/bin/manjaro-documentation"
install -Dm644 manjaro-documentation.desktop "$pkgdir/usr/share/applications/manjaro-documentation.desktop"
}
3 changes: 3 additions & 0 deletions manjaro-documentation/manjaro-documentation
@@ -0,0 +1,3 @@
#!/bin/bash

xdg-open '/usr/share/doc/livecd/Beginner_User_Guide.pdf'
9 changes: 9 additions & 0 deletions manjaro-documentation/manjaro-documentation.desktop
@@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Manjaro User Guide
Comment=Documentation for Beginners
Exec=/usr/bin/manjaro-documentation
Icon=application-pdf
Terminal=false
Categories=Utility;Documentation;

0 comments on commit 568b12a

Please sign in to comment.