summaryrefslogblamecommitdiff
path: root/system/libedit/APKBUILD
blob: ba1faf9ab53a90e612c4b870b2bbcab7e4b0a8a7 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  

                            

                                                                             
                                   
          
                      

                                                                       
                                            
                                       
                                                             

                   
                                     
 





                                  





















                                         

                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libedit
pkgver=20180525.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() {
	cd "$builddir"
	default_prepare
	autoreconf -v -f --install
}

build() {
	cd "$builddir"
	./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="63b4dae3f0a71714ba66c074d6cf9b49dbc82dd795f1290ca978cfe3cb57944dffb6d89d275f9bbb200b4672b5a1101d9e62ebf492a83bb7f795b2e4d9d3d2ea  libedit-20180525-3.1.tar.gz
b9cfb07733d14339cfb053b5c4249b74486268005474f65f377e412e5cccbe29d3ce55663a9795db0b682155084cca5a9424de348c7defdc8698dea042c2a674  tinfo.patch"