summaryrefslogtreecommitdiffstats
path: root/docbook2odf/PKGBUILD
blob: cdeff817983baf1d969e6ddeda50b2b8abe70ca3 (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
# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
pkgname=docbook2odf
pkgver=0.244
pkgrel=2
pkgdesc="toolkit that automaticaly converts DocBook to OASIS OpenDocument"
arch=(i686 x86_64)
url="http://open.comsultia.com/docbook2odf/"
license=('GPL2')
depends=('libxslt' 'perl-xml-libxslt' 'zip' 'perl-archive-zip')
makedepends=()
provides=('docbook2odf')
conflicts=()
replaces=()
backup=()
install=
source=(http://open.comsultia.com/docbook2odf/dwn/${pkgname}-${pkgver}.tar.gz)
md5sums=('3b285dc4d6298beb12818a350776751f')

noextract=()
build() {
	src=$startdir/src/docbook2odf-${pkgver}
	dst=$startdir/pkg
	mkdir -p "$dst/usr/share/docbook2odf/examples"
	mkdir -p "$dst/usr/bin"
	mkdir -p "$dst/usr/share/applications"
	mkdir -p "$dst/usr/share/man/man1"
	install -m0644 $src/bindings/desktop/*.desktop $dst/usr/share/applications
	install -m0644 $src/docs/docbook2odf.1 $dst/usr/share/man/man1/
	install -m0644 $src/examples/* $dst/usr/share/docbook2odf/examples
	install -m0755 $src/utils/docbook2odf $dst/usr/bin
	dst=$dst/usr/share/docbook2odf/xsl
	mkdir -p $dst/document-content
	install -m0644 $src/xsl/* $dst/
	install -m0644 $src/xsl/document-content/* $dst/document-content/
	mkdir -p $dst/document-styles
	install -m0644 $src/xsl/document-styles/* $dst/document-styles/
	mkdir -p $dst/overlay
	install -m0644 $src/xsl/overlay/* $dst/overlay/
	mkdir -p $dst/common
	install -m0644 $src/xsl/common/* $dst/common/
}