summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a39e3a78a7e53ef7b407e470040f4643eb30a234 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: L.G. Sarmiento (Pico) <Luis.Sarmientop-ala-nuclear.lu.se>
pkgname=beamerscape-git
_pkgname=beamerscape
pkgver=0.5
pkgrel=3
pkgdesc="Tools for integrating Inkscape and LaTeX beamer"
arch=('any')
url="https://github.com/jbohren/beamerscape"
license=('BSD')
depends=('texlive-publishers' 'perl-xml-libxml' 'inkscape')
optdepends=('cmake>=2.8.3: to \% Layergenerate a large number of presentations')
provides=('beamerscape')
replaces=('beamerscape_hg')
conflicts=('beamerscape_hg')
_gitroot="https://github.com/jbohren/beamerscape.git"

build() {
  [ -d ${srcdir}/${pkgname} ] || mkdir -p ${srcdir}/${pkgname}
  cd ${srcdir}/${pkgname}
  git clone --depth 1 $_gitroot .
  # as of 24/Sep/2015 a new escaping "%" is needed.
  sed -i 's#\\% Layer#%% Layer#g' bin/export_overlays
}

package() {

  cd ${srcdir}/${pkgname}
  [ -d ${pkgdir}/usr/bin ] ||  mkdir -p ${pkgdir}/usr/bin
  install -m755 bin/export_overlays ${pkgdir}/usr/bin

  [ -d ${pkgdir}/usr/share/apps/cmake/modules/ ] ||  mkdir -p ${pkgdir}/usr/share/apps/cmake/modules/
  install -m644 cmake/*.cmake ${pkgdir}/usr/share/apps/cmake/modules

  [ -d ${pkgdir}/usr/share/${_pkgname} ] ||  mkdir -p ${pkgdir}/usr/share/${_pkgname}
  cp -R examples ${pkgdir}/usr/share/${_pkgname}/

}