updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / docbook-dsssl / PKGBUILD
blobad4e733cde6e37123a4cee59f0531c9796416100
1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 # Contributor: Suat SARIALP <muhendis.suat@gmail.com>
3 pkgname=docbook-dsssl
4 pkgver=1.79
5 pkgrel=3
6 pkgdesc="DSSSL Stylesheets for DocBook"
7 arch=('i686' 'x86_64')
8 url="http://docbook.sourceforge.net/projects/dsssl/index.html"
9 license=(as-is)
10 depends=('sgml-common')
11 install=docbook-dsssl.install
12 makedepends=()
13 source=("http://kent.dl.sourceforge.net/project/docbook/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz" "docbook-dsssl-stylesheets.Makefile")
14 md5sums=('8459913bbd8a5724a6fe4b9ed5bab5af'
15          'aa413b2500a9fa5f6ac08e657d0958d5')
17 build() {
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 ]
24         then
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."
29                 exit 1
30         fi
32   ln -sf "/usr/share/sgml/docbook/dsssl-stylesheets-$pkgver" "$pkgdir/usr/share/sgml/stylesheets/dsssl/docbook"