# $Id: PKGBUILD 37217 2011-01-12 14:33:47Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Sergej Pupykin pkgname=calc pkgver=2.12.4.3 pkgrel=1 pkgdesc="console calculator" arch=(i686 x86_64 'mips64el') 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=('d95dccde71cc8d920af0f8375e85e9c8') build() { cd $srcdir/calc-$pkgver patch -p0 Makefile < 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 -j1 make T=$pkgdir install mv $pkgdir/usr/bin/cscript $startdir/pkg/usr/share/calc/ }