blob: bb1f8fd796f58698b4b44a23ead5d105fe25bb6a (
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
|
# $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.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
}
|