updated on Wed Jan 18 04:00:29 UTC 2012
[aur-mirror.git] / msc / PKGBUILD
blob79ff744c0dc4593b40347256fe4a97f6c8371a53
1 # Maintainer: Magnus Müller <stiffy2 @ gmx at de>
2 pkgname=msc
3 pkgver=1.1.1
4 pkgrel=1
5 pkgdesc="Generate ASCII MSC from a textual description"
6 arch=(i686 x86_64)
7 url="http://packages.ubuntu.com/dapper/msc"
8 license=('gpl')
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)
13 build() {
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