diff options
Diffstat (limited to 'community/calc')
-rw-r--r-- | community/calc/PKGBUILD | 48 |
1 files changed, 7 insertions, 41 deletions
diff --git a/community/calc/PKGBUILD b/community/calc/PKGBUILD index 9ca661ed0..6c5e3ee9f 100644 --- a/community/calc/PKGBUILD +++ b/community/calc/PKGBUILD @@ -1,62 +1,28 @@ -# $Id: PKGBUILD 93457 2013-07-03 13:50:16Z spupykin $ +# $Id: PKGBUILD 104409 2014-01-20 11:01:07Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgname=calc -pkgver=2.12.4.8 +pkgver=2.12.4.13 pkgrel=1 pkgdesc="console calculator" arch=(i686 x86_64 'mips64el') url="http://www.isthe.com/chongo/tech/comp/calc/" license=('GPL') -depends=(glibc) +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=('38694f375e172f0b830d4dbf9d6f2dcc') +md5sums=('7955e52ebd6b4f8482ef2b31c490eb35') build() { cd $srcdir/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 -j1 + 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 } |