1 # Maintainer: Magnus Müller <stiffy2 @ gmx at de>
5 pkgdesc="Generate ASCII MSC from a textual description"
7 url="http://packages.ubuntu.com/dapper/msc"
9 depends=(python2 python2-pyparsing)
10 source=(http://archive.ubuntu.com/ubuntu/pool/universe/m/msc/msc_1.1.1.orig.tar.gz)
11 md5sums=(81a08a22b20782bb1052d0104f5cbc78)
14 cd "${srcdir}/${pkgname}-${pkgver}.orig"
16 make DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-1.76.1/manpages/docbook.xsl
17 install -d ${pkgdir}/usr/bin/
18 install -Dm755 ${srcdir}/${pkgname}-${pkgver}.orig/msc ${pkgdir}/usr/bin || return 1
20 msg "fix interpreter path"
21 sed -i -e "s,${pkgdir},," -e "s,#!/usr/bin/env python,#!/usr/bin/env python2," ${pkgdir}/usr/bin/msc
23 install -d ${pkgdir}/usr/share/man/man1
24 gzip -f ${srcdir}/${pkgname}-${pkgver}.orig/msc.1
25 install -Dm644 ${srcdir}/${pkgname}-${pkgver}.orig/msc.1.gz ${pkgdir}/usr/share/man/man1