Files
binary-repo/sys/devel/bc/ympbuild
T
2023-01-06 12:15:29 +00:00

50 lines
1.0 KiB
Bash

#!/usr/bin/env bash
name='bc'
release='1'
version='1.07'
url='https://ftp.gnu.org/gnu/bc/'
description='Handy console-based calculator utility'
email='aliriza.keskin@pardus.org.tr'
maintainer='aliriza'
license=('GPLv3')
source=("https://ftp.gnu.org/gnu/bc/bc-$version.tar.gz"
"https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-devel/bc/files/bc-1.07.1-no-ed-its-sed.patch")
depends=(readline)
makedepends=()
md5sums=('e91638a947beadabf4d7770bdbb3d512'
'a7bdd642f30ae47ee5bcbcf3f65e061b')
group=(sys.devel)
uses=()
uses_extra=(static)
arch=('x86_64')
cd $name-$version
if use static ; then
export CFLAGS="-static"
fi
export PATH=$PATH:$HOME
prepare(){
echo "#!/bin/sh" > $HOME/makeinfo
echo "printf 'makeinfo (GNU texinfo) 5.2\n'" >> $HOME/makeinfo
chmod +x $HOME/makeinfo
patch -Np1 -i ../bc-1.07.1-no-ed-its-sed.patch
}
setup(){
./configure --prefix=/usr \
--libdir=/usr/lib64/ \
--with-readline
}
build(){
make
}
package(){
make install -j`nproc`
}