blob: 38621d4de266c49a21958497f613879fa693c395 (
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
42
43
44
45
46
47
48
49
|
# Contributor: Dmitriy Morozov <archlinux@foxcub.org>
_pkgname=ipe-tools
pkgname=$_pkgname-git
pkgrel=11
pkgver=git
arch=('i686' 'x86_64')
makedepends=('git' 'sed')
depends=('ipe' 'lua53')
url="https://github.com/otfried/ipe-tools"
pkgdesc="Tools for Ipe: pdftoipe, figtoipe, ipe5toxml, svgtoipe"
source=("git+https://github.com/otfried/ipe-tools.git")
build() {
# pdftoipe
cd "$srcdir/ipe-tools/pdftoipe"
make
# figtoipe
cd "$srcdir/ipe-tools/figtoipe"
make
# ipe5toxml
cd "$srcdir/ipe-tools/ipe5toxml"
make
# svgtoipe
cd "$srcdir/ipe-tools/svgtoipe"
sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" svgtoipe.py
# ipepython
cd "$srcdir/ipe-tools/ipepython"
python setup.py build
}
package() {
mkdir -p "$pkgdir/usr/bin"
cp "$srcdir/ipe-tools/pdftoipe/pdftoipe" "$pkgdir/usr/bin"
cp "$srcdir/ipe-tools/figtoipe/figtoipe" "$pkgdir/usr/bin"
install -m 755 "$srcdir/ipe-tools/svgtoipe/svgtoipe.py" "$pkgdir/usr/bin"
cp "$srcdir/ipe-tools/ipe5toxml/ipe5toxml" "$pkgdir/usr/bin"
cd "$srcdir/ipe-tools/ipepython"
python setup.py install --prefix="$pkgdir/usr"
}
# vim: ft=sh syn=sh et ts=2 sw=2
md5sums=('SKIP')
|