# $Id: PKGBUILD 104409 2014-01-20 11:01:07Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Sergej Pupykin pkgname=calc pkgver=2.12.4.13 pkgrel=1 pkgdesc="console calculator" arch=(i686 x86_64) url="http://www.isthe.com/chongo/tech/comp/calc/" license=('GPL') depends=('readline') makedepends=('chrpath') #source=(http://switch.dl.sf.net/sourceforge/calc/calc-$pkgver.tar.bz2) source=(http://www.isthe.com/chongo/src/calc/calc-$pkgver.tar.bz2) md5sums=('7955e52ebd6b4f8482ef2b31c490eb35') build() { cd $srcdir/calc-$pkgver make USE_READLINE="-DUSE_READLINE" READLINE_LIB="-lreadline" READLINE_EXTRAS="-lhistory -lncurses" -j1 } package() { cd $srcdir/calc-$pkgver make T=$pkgdir install mv $pkgdir/usr/bin/cscript $pkgdir/usr/share/calc/ chrpath -d $pkgdir/usr/bin/calc }