aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnumbertext/APKBUILD
blob: f434c137da1a3c00481be6a8cac224ca33d10802 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnumbertext
pkgver=1.0.3
pkgrel=0
pkgdesc="Number to number name and money text conversion library"
url="https://github.com/Numbertext/libnumbertext"
arch="all"
license="(LGPLv3+ or BSD) and (LGPLv3+ or BSD or CC-BY-SA)"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="https://github.com/Numbertext/libnumbertext/releases/download/1.0/libnumbertext-$pkgver.tar.xz"
builddir="$srcdir/libnumbertext-$pkgver"

prepare() {
	cd "$builddir"
	default_prepare
	autoreconf -v --install --force
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

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

sha512sums="0ce9c68c8d928f7c8aa13f4760360ab3077ff0923a6b34256a1ca1047b7401a7d99ac5205b80b3e57c6e693c59ccc8328e04cfebeee07794c906a1ab750a3a7a  libnumbertext-1.0.3.tar.xz"