summaryrefslogtreecommitdiff
path: root/community/calc/PKGBUILD
blob: 622528c4a56df543de297a7a08b0c74b356675b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $Id: PKGBUILD 61256 2011-12-26 12:59:57Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=calc
pkgver=2.12.4.4
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)
source=(http://www.isthe.com/chongo/src/calc/calc-$pkgver.tar.bz2)
md5sums=('1ad16a9304df7137cd8626a1f50b6aae')

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 T=$pkgdir install
  mv $pkgdir/usr/bin/cscript $pkgdir/usr/share/calc/
}