diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/cln |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/cln')
-rw-r--r-- | extra/cln/PKGBUILD | 28 | ||||
-rw-r--r-- | extra/cln/cln.install | 20 |
2 files changed, 48 insertions, 0 deletions
diff --git a/extra/cln/PKGBUILD b/extra/cln/PKGBUILD new file mode 100644 index 000000000..2fb8e57f5 --- /dev/null +++ b/extra/cln/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 108622 2011-02-02 01:45:45Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=cln +pkgver=1.3.1 +pkgrel=1 +pkgdesc="Class library for numbers" +arch=('i686' 'x86_64') +url="http://www.ginac.de/CLN/" +license=('GPL') +depends=('gmp') +makedepends=('texlive-core') +options=('!libtool') +install=cln.install +source=(ftp://ftpthep.physik.uni-mainz.de/pub/gnu/${pkgname}-${pkgver}.tar.bz2) +md5sums=('ede584cb1cafa66d56f42a3cf420469d') +sha1sums=('351506da9bd7b0b3cefd3a5424823797fb589acc') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr + make all html pdf +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install install-html install-pdf +} diff --git a/extra/cln/cln.install b/extra/cln/cln.install new file mode 100644 index 000000000..7706dea0c --- /dev/null +++ b/extra/cln/cln.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(cln.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |