aboutsummaryrefslogtreecommitdiffstats
path: root/main/bc/APKBUILD
blob: 0431dceea163c0b34a56746c16f7f02a42c12931 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Michael Mason <ms13sp@gmail.com> 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bc
pkgver=1.06.95
pkgrel=3
pkgdesc="An arbitrary precision numeric processing language (calculator)"
url="http://www.gnu.org/software/bc/bc.html"
arch="all"
license="GPL2+"
depends=""
makedepends="flex bison readline-dev texinfo"
install=""
subpackages="$pkgname-doc"
source="ftp://alpha.gnu.org/gnu/bc/bc-$pkgver.tar.bz2
	bc-1.06.95-memory_leak-1.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	local i
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="5126a721b73f97d715bb72c13c889035  bc-1.06.95.tar.bz2
877e81fba316fe487ec23501059d54b8  bc-1.06.95-memory_leak-1.patch"
sha256sums="7ee4abbcfac03d8a6e1a8a3440558a3d239d6b858585063e745c760957725ecc  bc-1.06.95.tar.bz2
9e9279f1c2c4b83f3dab9672563bb02087776f04bb43eec135af117e6d4f83fb  bc-1.06.95-memory_leak-1.patch"
sha512sums="16ec13f87ef76ad4de77d378ef8d65a582adca1bf661c9d7675e78d940680c77e81a00a01817fde7c1ad1524562d6f933caa5c42a0686f3f85aadbb39393afb1  bc-1.06.95.tar.bz2
ee655b87f7fbbd7ce9a85218d38f5a971433691e7d34aff8c122b4e5ff94490c7441001dd73da8bab623a29548cd295ef9c3ae760ebf39f4825cc044d35d4eb6  bc-1.06.95-memory_leak-1.patch"