summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKyle Keen2019-05-04 05:41:49 -0400
committerKyle Keen2019-05-04 05:41:49 -0400
commiteebe4674f9c98a47af9cbc494eec5207fdf707a3 (patch)
tree47254c1afbc32e1556afb20df459bba117852f92 /PKGBUILD
parent8bdccafe7006ed0c6044b643e9df6936eb9bf921 (diff)
downloadaur-rpncalc.tar.gz
remove pow10
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c5f2f2a62f8..aadfdd9a3d4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=rpncalc
pkgver=1.36.8
-pkgrel=2
+pkgrel=3
pkgdesc="A calculator similar to dc, but uses readline and shows the stack visually."
arch=('i686' 'x86_64')
#url="http://packages.debian.org/squeeze/rpncalc"
@@ -14,11 +14,18 @@ makedepends=('bison' 'flex' 'gettext' 'ed')
#source=("http://ftp.de.debian.org/debian/pool/main/r/${pkgname}/${pkgname}_${pkgver}.tar.gz")
#source=("http://www-cs.stanford.edu/pub/mirrors/ubuntu/ubuntu/pool/universe/r/rpncalc/rpncalc_$pkgver.tar.gz")
source=("http://old-releases.ubuntu.com/ubuntu/pool/universe/r/rpncalc/rpncalc_$pkgver.tar.gz")
+#source=("https://github.com/AfoHT/rpncalc/archive/v$pkgver.tar.gz")
md5sums=('53c56b3cc539f214c2c26d5af62d878d')
-build() {
+prepare() {
cd "$srcdir/$pkgname"
sed -i 's|ed .* proto.ed$|LANG=C &|' Makefile
+ # libm removed the pow10 functions
+ sed -i 's|pow10|exp10|' {cmds.h,scan.l}
+}
+
+build() {
+ cd "$srcdir/$pkgname"
make
}