summaryrefslogtreecommitdiff
path: root/system/argp-standalone/APKBUILD
blob: b1f2c8cc394ac81a17529aaa4878c8ead2bca471 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=argp-standalone
pkgver=1.4.1
pkgrel=0
pkgdesc="Hierarchial argument parsing library broken out from glibc"
url=" "
arch="all"
license="LGPL-2.1+ AND Public-Domain"
depends=""
makedepends="libtool automake autoconf"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ericonr/$pkgname/archive/refs/tags/$pkgver.tar.gz
	libtool.patch
	"

prepare() {
	default_prepare
	autoreconf -vif
}

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

check() {
	make check
}

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

sha512sums="c5f07e88434589a13a2e88e66d1142b581f19aa82da28507f3c31ea782e080a13a4504d8108c003b5d3c8a3aa20f52ea5e81f337c11a4b1342b16361d4877c1c  argp-standalone-1.4.1.tar.gz
6349f99adc4400672a63a05d77a18ea50702673495276ab703ac6d2531a20c958714a5be273a4ed1b44d2e6e7d777f9f7abe4413b7064b5219c891531831242c  libtool.patch"