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


                                                         
                   
                  
        
                                  
                                      
          
                      




                                       
                                                              
 
                                

         
                      



                                 


                                           

                                    

 




                      
           

                                      
                                                  

 
                                                                                                                                                                          
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libedit
pkgver=20181209.3.1
_ver=${pkgver/./-}
pkgrel=0
pkgdesc="BSD line editing library"
url="https://www.thrysoee.dk/editline"
arch="all"
license="BSD-3-Clause"
depends=""
depends_dev="ncurses-dev"
makedepends="$depends_dev"
install=""
subpackages="$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="7673fb5612149a0d3508a103ac6f92041704911b27fffa084624f835fa6ac55b17c43b6e622ff9eac6ca06368e80ede14d93ec75afb5a368651734b8bfe045d2  libedit-20181209-3.1.tar.gz"