Browse Source

[trunk] -> [community-testing] 'calc-2.14.0.8-1' add

master
strajder 2 months ago
parent
commit
27d6c9ce22
Signed by: strajder GPG Key ID: AA7325972B740A9F
  1. 6
      calc/trunk/PKGBUILD
  2. 34
      calc/x86_64/community-testing/PKGBUILD

6
calc/trunk/PKGBUILD

@ -2,8 +2,8 @@
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=calc
pkgver=2.13.0.1
pkgrel=2
pkgver=2.14.0.8
pkgrel=1
pkgdesc="Arbitrary precision console calculator"
arch=('x86_64')
url="http://www.isthe.com/chongo/tech/comp/calc/"
@ -12,7 +12,7 @@ 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")
sha256sums=('6ae538f57785c5701a70112ccf007ab5553abd332ae2deaadaf564f401c734ad')
sha256sums=('ad6a2c44eeea7e06efca5384f107ffaee7564407a7474d7cd4928a53b1a28386')
prepare() {
cd "$srcdir/calc-$pkgver"

34
calc/x86_64/community-testing/PKGBUILD

@ -0,0 +1,34 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=calc
pkgver=2.14.0.8
pkgrel=1
pkgdesc="Arbitrary precision console calculator"
arch=('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")
sha256sums=('ad6a2c44eeea7e06efca5384f107ffaee7564407a7474d7cd4928a53b1a28386')
prepare() {
cd "$srcdir/calc-$pkgver"
sed -i 's/${CC} ${LIBCALC_SHLIB}/${CC} ${LDFLAGS} ${LIBCALC_SHLIB}/' Makefile
sed -i 's/${CC} ${LIBCUSTCALC_SHLIB}/${CC} ${LDFLAGS} ${LIBCUSTCALC_SHLIB}/' custom/Makefile
}
build() {
cd "$srcdir/calc-$pkgver"
make USE_READLINE="-DUSE_READLINE" READLINE_LIB="-lreadline" READLINE_EXTRAS="-lhistory -lncurses" -j1 \
EXTRA_CFLAGS="$CPPFLAGS $CFLAGS" EXTRA_LDFLAGS="$LDFLAGS" ARCH_CFLAGS='' LD_SHARE='' DEBUG=''
}
package() {
cd "$srcdir/calc-$pkgver"
make T="$pkgdir" install
mv "$pkgdir/usr/bin/cscript" "$pkgdir/usr/share/calc/"
chrpath -d "$pkgdir/usr/bin/calc"
}
Loading…
Cancel
Save