aboutsummaryrefslogblamecommitdiffstats
path: root/testing/howard-bc/APKBUILD
blob: caf468f6064f08f7c0b34382483b51603eddb0a2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                     


                          


                                       

                                                                                                                             
                                    


                      

















                                                                          



                      
                    

 
                                                                                                                                                                     
# Contributor: Gavin D. Howard <yzena.tech@gmail.com>
# Maintainer: Gavin D. Howard <yzena.tech@gmail.com>
pkgname=howard-bc
_pkgname=bc
subpackages="$pkgname-doc"
pkgver=1.1.4
pkgrel=0
pkgdesc="POSIX bc with GNU extensions"
url="https://github.com/gavinhoward/bc"
arch="all"
license="BSD-2-Clause"
source="$pkgname-$pkgver.tar.xz::https://github.com/gavinhoward/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.xz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	PREFIX=/usr DESTDIR="$pkgdir" EXECSUFFIX=-howard ./configure.sh -G
	make
}

check() {
	cd "$builddir"
	make test
}

doc() {
	# Man pages
	mkdir -p "$subpkgdir"/usr/share/man
	mv "$pkgdir"/usr/share/man/man* "$subpkgdir"/usr/share/man/
	gzip "$subpkgdir"/usr/share/man/man*/*

	# Doc files
	install -Dm644 "$builddir"/LICENSE.md \
			"$subpkgdir"/usr/share/doc/$pkgname/LICENSE.md
}

package() {
	cd "$builddir"
	make install
}

sha512sums="fa67325cc3cb5df7513e6d0ae74d3476d7d9e87722db2f24d0cf0781622f02ec99e6ab27d3e2d57866830dd18dc43eb3c52d460be6c6ec0260ce2bad7765d7aa  howard-bc-1.1.4.tar.xz"