summaryrefslogtreecommitdiffstats
path: root/main/docbook-xsl/APKBUILD
blob: 1c2edb41361078f7f97936da860cbef7f5a6e171 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=docbook-xsl
pkgver=1.78.1
pkgrel=2
pkgdesc="XML stylesheets for Docbook-xml transformations."
url="http://docbook.sourceforge.net/"
arch="all"
license="custom"
depends="libxml2-utils libxslt docbook-xml"
makedepends=""
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
source="http://downloads.sourceforge.net/sourceforge/docbook/$pkgname-$pkgver.tar.bz2"

build() {
	return 0
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	local _dest dir f
	_dest="$pkgdir"/usr/share/xml/docbook/xsl-stylesheets-$pkgver

	install -dm755 "$_dest"
	install -m644 VERSION VERSION.xsl "$_dest"/ || return 1

	for dir in assembly common eclipse epub epub3 fo highlighting html \
		htmlhelp javahelp lib manpages params profiling roundtrip \
		template website xhtml xhtml-1_1 xhtml5; do

		install -dm755 $_dest/$dir
		for f in $dir/*.xml $dir/*.xsl $dir/*.dtd $dir/*.ent; do
			[ -e "$f" ] || continue
			install -m644 $f $_dest/$dir || return 1
		done
	done

	install -dm755 "$pkgdir"/etc/xml || return 1

	install -m644 -D COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="6dd0f89131cc35bf4f2ed105a1c17771  docbook-xsl-1.78.1.tar.bz2"
sha256sums="c98f7296ab5c8ccd2e0bc07634976a37f50847df2d8a59bdb1e157664700b467  docbook-xsl-1.78.1.tar.bz2"
sha512sums="0a5ca95e6e451192c4edf15d2b72c716935ce6df0c70c1974f794f0085db8f52f3e1f470435b6a77ec7c0f67e32c189a4dd334305e609031173444d5818767f3  docbook-xsl-1.78.1.tar.bz2"