summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 26 insertions, 22 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a39e3a78a7e5..86269d0f37bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,41 @@
-# Maintainer: L.G. Sarmiento (Pico) <Luis.Sarmientop-ala-nuclear.lu.se>
+# Contributor: L.G. Sarmiento (Pico) <Luis.Sarmientop-ala-nuclear.lu.se>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
pkgname=beamerscape-git
_pkgname=beamerscape
-pkgver=0.5
-pkgrel=3
+pkgver=r38.5d95cc1
+pkgrel=2
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')
+makedepends=('git')
+depends=('texlive-latexrecommended' '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"
+conflicts=('beamerscape')
+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)"
+}
-build() {
- [ -d ${srcdir}/${pkgname} ] || mkdir -p ${srcdir}/${pkgname}
- cd ${srcdir}/${pkgname}
- git clone --depth 1 $_gitroot .
+prepare() {
+ cd $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}/
-
+ cd $pkgname
+ install -Dm755 bin/export_overlays "$pkgdir"/usr/bin/export_overlays
+ install -Dm644 cmake/*.cmake -t "$pkgdir"/usr/share/apps/cmake/modules
+ install -d "$pkgdir"/usr/share/doc/${_pkgname}
+ cp -R examples "$pkgdir"/usr/share/doc/${_pkgname}/
+ install -d "$pkgdir"/usr/share/licenses/${pkgname}/
+ sed '14,38s+^#++' bin/export_overlays > "$pkgdir"/usr/share/licenses/${pkgname}/license.txt
+ sed -i '1,13d' "$pkgdir"/usr/share/licenses/${pkgname}/license.txt
+ sed -i '26,$d' "$pkgdir"/usr/share/licenses/${pkgname}/license.txt
}