summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3730867a4f54f09a83fb2c3c39327c4cee4d65a6 (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
38
39
40
41
# Maintainer: L.G. Sarmiento (Pico) <Luis.Sarmientop-ala-nuclear.lu.se>
pkgname=beamerscape-git
_pkgname=beamerscape
pkgver=r38.5d95cc1
pkgrel=1
pkgdesc="Tools for integrating Inkscape and LaTeX beamer"
arch=('any')
url="https://github.com/jbohren/beamerscape"
license=('BSD')
makedepends=('git')
depends=('texlive-publishers' 'perl-xml-libxml' 'inkscape')
optdepends=('cmake>=2.8.3: to \% Layergenerate a large number of presentations')
provides=('beamerscape')
replaces=('beamerscape_hg')
source=($pkgname::git+http://github.com/jbohren/beamerscape.git)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd ${srcdir}/${pkgname}
  # 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}/

}