aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rlwrap/APKBUILD
blob: a1579054dc9db61a03e36114c8a8d9006a30875f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rlwrap
pkgver=0.45
pkgrel=0
pkgdesc="readline wrapper"
url="https://github.com/hanslub42/rlwrap"
arch="all"
license="GPL-2.0-or-later"
makedepends="readline-dev ncurses-dev automake autoconf libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hanslub42/rlwrap/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

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="3ac5f1f15496311edd4bcc206751b17a8f305a201338ea233cf0f56eb14532a18c2f85a7ddd2913d627e5383435376e8761ca44565686ca67c3b377ca3886330  rlwrap-0.45.tar.gz"