1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 # Contributor: Suat SARIALP <muhendis.suat@gmail.com>
6 pkgdesc="DSSSL Stylesheets for DocBook"
8 url="http://docbook.sourceforge.net/projects/dsssl/index.html"
10 depends=('sgml-common')
11 install=docbook-dsssl.install
13 source=("http://kent.dl.sourceforge.net/project/docbook/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz" "docbook-dsssl-stylesheets.Makefile")
14 md5sums=('8459913bbd8a5724a6fe4b9ed5bab5af'
15 'aa413b2500a9fa5f6ac08e657d0958d5')
18 cd $srcdir/$pkgname-$pkgver
19 cp $srcdir/docbook-dsssl-stylesheets.Makefile Makefile
20 make BINDIR="$startdir/pkg/usr/bin" DESTDIR="$startdir/pkg/usr/share/sgml/docbook/dsssl-stylesheets-${pkgver}"
21 mkdir -p $startdir/pkg/usr/share/sgml/stylesheets/dsssl/
22 if [ -d /usr/share/sgml/stylesheets/dsssl/docbook ] &&
23 [ ! -L /usr/share/sgml/stylesheets/dsssl/docbook ]
25 msg "Not linking /usr/share/sgml/stylesheets/dsssl/docbook to"
26 msg "/usr/share/sgml/docbook/dsssl-stylesheets-${PV}"
27 msg "as directory already exists there. Will assume you know"
28 msg "what you're doing."
32 ln -sf "/usr/share/sgml/docbook/dsssl-stylesheets-$pkgver" "$pkgdir/usr/share/sgml/stylesheets/dsssl/docbook"