summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/docbook-xsl/APKBUILD37
1 files changed, 18 insertions, 19 deletions
diff --git a/main/docbook-xsl/APKBUILD b/main/docbook-xsl/APKBUILD
index 432c59078..518ac2d64 100644
--- a/main/docbook-xsl/APKBUILD
+++ b/main/docbook-xsl/APKBUILD
@@ -1,9 +1,9 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=docbook-xsl
pkgver=1.78.1
-pkgrel=0
+pkgrel=1
pkgdesc="XML stylesheets for Docbook-xml transformations."
-url="http://scrollkeeper.sourceforge.net/docbook.shtml"
+url="http://docbook.sourceforge.net/"
arch="all"
license="custom"
depends="libxml2-utils libxslt docbook-xml"
@@ -17,25 +17,24 @@ build() {
package() {
cd "$srcdir"/$pkgname-$pkgver
+ local _dest dir f
_dest="$pkgdir"/usr/share/xml/docbook/xsl-stylesheets-$pkgver
- mkdir -p "$_dest"/common
- for i in xml xsl dtd ent; do
- install -m644 common/*.$i "$_dest"/common/
- done
- mkdir -p "$_dest"/params
- install -m644 params/*.xml "$_dest"/params/
- for fn in fo highlighting html roundtrip; do
- mkdir -p "$_dest"/$fn
- install -m644 ${fn}/*.xml "$_dest"/$fn/
- install -m644 ${fn}/*.xsl "$_dest"/$fn/
- done
- for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml; do
- mkdir -p "$_dest"/$fn
- install -m644 ${fn}/*.xsl "$_dest"/$fn/
+
+ install -m644 VERSION VERSION.xsl "$_dest"/
+
+ 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
- mkdir -p "$pkgdir"/etc/xml
- install -m644 VERSION "$_dest"/
- cp -a VERSION.xsl "$_dest"/VERSION.xsl || return 1
+
+ install -dm755 "$pkgdir"/etc/xml || return 1
+
install -m644 -D COPYING \
"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}