Skip to content

Instantly share code, notes, and snippets.

@AfoHT
Created May 3, 2019 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AfoHT/16aca77567718a2a50a3e9a3974e5d75 to your computer and use it in GitHub Desktop.
Save AfoHT/16aca77567718a2a50a3e9a3974e5d75 to your computer and use it in GitHub Desktop.
rpncalc 1.36.9
/usr/bin/ld: scan.o:(.data.rel.ro+0x1d0): undefined reference to `pow10'
collect2: error: ld returned 1 exit status
make: *** [Makefile:76: rpncalc] Error 1
rm gram.c scan.c
==> ERROR: A failure occurred in build().
Aborting...
Error making: rpncalc
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Oguz Han Asnaz <O.Asnaz@gmx.net>
pkgname=rpncalc
pkgver=1.36.9
pkgrel=1
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"
url="http://homepage.hispeed.ch/david.frey/"
license=('GPL2')
depends=('readline')
makedepends=('bison' 'flex' 'gettext' 'ed')
source=("https://github.com/AfoHT/rpncalc/archive/v$pkgver.tar.gz")
md5sums=('f7227e7c0c649dd20ebf7be8c22e22fc')
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's|ed .* proto.ed$|LANG=C &|' Makefile
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment