aboutsummaryrefslogtreecommitdiffstats
path: root/testing/howard-bc/APKBUILD
blob: b5db31d06b9e2638576508e20cc72a418fa4411c (plain) (blame)
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
# Contributor: Gavin D. Howard <yzena.tech@gmail.com>
# Maintainer: Gavin D. Howard <yzena.tech@gmail.com>
pkgname=howard-bc
_pkgname=bc
pkgver=0.5
pkgrel=1
pkgdesc="POSIX bc with GNU extensions"
url="https://github.com/gavinhoward/bc"
arch="all"
license="0BSD"
depends="!bc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gavinhoward/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
# The test suite uses a previously installed version of bc,
# so it would not make much sense to run it.
options="!check"

build() {
	cd "$builddir"
	CFLAGS="-flto" make release
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/bin
	PREFIX="$pkgdir"/usr make install
}

sha512sums="110a8a6b09a4ebd053c0bcdf4621c5aa6344d4591f51f6b2d323330c0a817374dc635fbe058db8f721668fd47832bde73d50cb1031bdaeec4668aa12edf733ab  howard-bc-0.5.tar.gz"