aboutsummaryrefslogblamecommitdiffstats
path: root/main/libedit/APKBUILD
blob: 133b76dcc0b7e07e32b08ed5b877dea38054f578 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                          
               
                   
                  
        
                                  
                                      
          
                      
                         

                               
                                                       
                                                              
                                

         
                      



                                 


                                           

                                    

 




                      
           

                                      
                                                  

 
                                                                                                                                                                          
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=libedit
pkgver=20191231.3.1
_ver=${pkgver/./-}
pkgrel=0
pkgdesc="BSD line editing library"
url="https://www.thrysoee.dk/editline"
arch="all"
license="BSD-3-Clause"
depends_dev="ncurses-dev"
makedepends_build=""
makedepends_host="$depends_dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://www.thrysoee.dk/editline/libedit-$_ver.tar.gz"
builddir="$srcdir"/libedit-$_ver

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

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/share/man/man3/history.3*
}

sha512sums="1df2eced98e8db1bb0af940678c154d87e3b11dd21e65a903682367f5feace5112f9a543b8e0cb04bbfeaaf73729f808db2d9c302637fc063e81c0a37777ac2c  libedit-20191231-3.1.tar.gz"