summaryrefslogtreecommitdiff
path: root/system/libedit/APKBUILD
blob: d9dc2003b719a50162c64548dbc7510512c57048 (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
43
44
45
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libedit
pkgver=20190324.3.1
_realver=${pkgver/.3.1/-3.1}
pkgrel=0
pkgdesc="Library providing line editing, history, and tokenisation functions"
url="https://thrysoee.dk/editline/"
arch="all"
license="BSD-2-Clause"
depends=""
depends_dev="ncurses-dev"  # XXX is this always unconditionally needed?
makedepends="$depends_dev autoconf automake"
subpackages="$pkgname-dev $pkgname-doc"
source="https://thrysoee.dk/editline/libedit-$_realver.tar.gz
	tinfo.patch
	"
builddir="$srcdir/$pkgname-$_realver"

prepare() {
	default_prepare
	autoreconf -v -f --install
}

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="240098989e3c5c8c5e28a61036655ad5a57f1c484e1cce2eaf3da157ff238dfb9cd81c766f82efbefa0935b7b5c07328087788cbac007b11dfb558cfaccaedf3  libedit-20190324-3.1.tar.gz
b9cfb07733d14339cfb053b5c4249b74486268005474f65f377e412e5cccbe29d3ce55663a9795db0b682155084cca5a9424de348c7defdc8698dea042c2a674  tinfo.patch"