aboutsummaryrefslogblamecommitdiffstats
path: root/main/libelf/APKBUILD
blob: 028bb54ecf1294cfb0f3c05558e6a68d89b341e0 (plain) (tree)
1
2
3
4
5
6
7


                                                   
        

                                                         
          





                                                             






                                     
         
                       



                                 

                                    
                                 
                               
                           



                        
                       


                                                                
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libelf
pkgver=0.8.13
pkgrel=2
pkgdesc="libelf is a free ELF object file access library"
url="http://www.mr511.de/software/"
arch="all"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-dev"
source="http://www.mr511.de/software/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--enable-gnu-names \
		--enable-compat \
		--disable-nls \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install prefix="$pkgdir"/usr || return 1
}
md5sums="4136d7b4c04df68b686570afa26988ac  libelf-0.8.13.tar.gz"