PKGBUILDs/community/calc/PKGBUILD
2009-10-09 21:15:33 -05:00

57 lines
1.7 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=calc
pkgver=2.12.4.0
pkgrel=2
pkgdesc="console calculator"
arch=(i686 x86_64)
url="http://www.isthe.com/chongo/tech/comp/calc/"
license=('GPL')
depends=(glibc)
source=(http://switch.dl.sf.net/sourceforge/calc/calc-$pkgver.tar.bz2)
md5sums=('2ef56695837c6e501ca80b64e0be0db6')
build() {
cd $startdir/src/calc-$pkgver
patch -p0 Makefile <<EOF
1146c1146
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:/lib:/usr/lib:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH=/lib:/usr/lib:\${LIBDIR}
1180c1180
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH= \${PWD}:\${LIBDIR}
1233c1233
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:/lib:/usr/lib:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH=/lib:/usr/lib:\${LIBDIR}
1275c1275
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:/lib:/usr/lib:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH=/lib:/usr/lib:\${LIBDIR}
1312c1312
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:/lib:/usr/lib:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH=/lib:/usr/lib:\${LIBDIR}
1350c1350
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:/lib:/usr/lib:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH=/lib:/usr/lib:\${LIBDIR}
1406c1406
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:/lib:/usr/lib:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH=/lib:/usr/lib:\${LIBDIR}
1443c1443
< DEFAULT_LIB_INSTALL_PATH= \${PWD}:/lib:/usr/lib:\${LIBDIR}:/usr/local/lib
---
> DEFAULT_LIB_INSTALL_PATH=/lib:/usr/lib:\${LIBDIR}
EOF
make || return 1
make T=$startdir/pkg install && \
mv $startdir/pkg/usr/bin/cscript $startdir/pkg/usr/share/calc/
}